1
0
forked from 0ad/0ad

Reference to temporary, *= should return reference to this

This was SVN commit r115.
This commit is contained in:
Simon Brenner 2003-11-27 19:06:11 +00:00
parent 8ec8ead0f1
commit 5ebe6d053e

View File

@ -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