diff --git a/math/lin/quat.h b/math/lin/quat.h index 89746e5aab..85b4d94c94 100644 --- a/math/lin/quat.h +++ b/math/lin/quat.h @@ -76,7 +76,7 @@ public: float &operator [] (int i) { return *((&x) + i); } - const float operator [] (int i) const { + float operator [] (int i) const { return *((&x) + i); } //not sure about this, maybe mag is supposed to sqrt