diff --git a/libraries/AP_Math/matrix3.h b/libraries/AP_Math/matrix3.h index 3d8fcb5a37..09ecbfc794 100644 --- a/libraries/AP_Math/matrix3.h +++ b/libraries/AP_Math/matrix3.h @@ -176,9 +176,9 @@ public: // transpose the matrix Matrix3 transposed(void) const; - Matrix3 transpose(void) + void transpose(void) { - return *this = transposed(); + *this = transposed(); } // zero the matrix