forked from mirrors/0ad
Reference to temporary, *= should return reference to this
This was SVN commit r115.
This commit is contained in:
@@ -132,9 +132,9 @@ CMatrix3D CMatrix3D::operator * (const CMatrix3D &matrix) const
|
||||
//Matrix multiplication/assignment
|
||||
CMatrix3D &CMatrix3D::operator *= (const CMatrix3D &matrix)
|
||||
{
|
||||
CMatrix3D &Temp = (*this) * matrix;
|
||||
(*this) = (*this) * matrix;
|
||||
|
||||
return Temp;
|
||||
return *this;
|
||||
}
|
||||
|
||||
//Sets the identity matrix
|
||||
|
||||
Reference in New Issue
Block a user