fix bug #415: wrong return in Rotation2D::operator*=

This commit is contained in:
Gael Guennebaud 2012-02-08 21:50:51 +01:00
parent a1c7b5aa48
commit 5bb34fd14c

View File

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