fix issue #36 (missing return *this in Rotation2D

(transplanted from a4f6642518
)
This commit is contained in:
Gael Guennebaud
2009-08-11 15:11:47 +02:00
parent c9f7a19053
commit 4a50ee8c21

View File

@@ -85,7 +85,7 @@ public:
/** Concatenates two rotations */
inline Rotation2D& operator*=(const Rotation2D& other)
{ return m_angle += other.m_angle; }
{ return m_angle += other.m_angle; return *this; }
/** Applies the rotation to a 2D vector */
Vector2 operator* (const Vector2& vec) const