diff --git a/include/CQuaternion.hpp b/include/CQuaternion.hpp index 61ad82f..e069657 100644 --- a/include/CQuaternion.hpp +++ b/include/CQuaternion.hpp @@ -18,9 +18,9 @@ public: ZE_DECLARE_ALIGNED_ALLOCATOR(); CQuaternion() : r(1.0f) {} - CQuaternion(float r, float x, float y, float z) : r(r), v(x, y, z){} + CQuaternion(float r, float x, float y, float z) : r(r), v(x, y, z){ this->r = r; } CQuaternion(float x, float y, float z) { fromVector3f(CVector3f(x, y, z)); } - CQuaternion(float r, const CVector3f& vec) : r(r), v(vec){} + CQuaternion(float r, const CVector3f& vec) : v(vec){ this->r = r;} #if ZE_ATHENA_TYPES CQuaternion(Athena::io::IStreamReader& input) { r = input.readFloat(); v = CVector3f(input);} #endif