Fix CQuaternion subscript bug

This commit is contained in:
Jack Andersen 2016-04-07 16:39:36 -10:00
parent baaca3136b
commit 4dea46aa65
1 changed files with 3 additions and 3 deletions

View File

@ -159,9 +159,9 @@ public:
{
return std::asin(-2.f * (x * z - w * y));
}
inline float& operator[](size_t idx) {return (&x)[idx];}
inline const float& operator[](size_t idx) const {return (&x)[idx];}
inline float& operator[](size_t idx) {return (&w)[idx];}
inline const float& operator[](size_t idx) const {return (&w)[idx];}
union
{