forked from 0ad/0ad
Reference to temporary, *= should return reference to this
This was SVN commit r115.
This commit is contained in:
parent
8ec8ead0f1
commit
5ebe6d053e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user