Fix CoordsXY sum and subtract operators (#10128)

This commit is contained in:
Tulio Leao 2019-10-21 02:23:01 -03:00 committed by Michał Janiszewski
parent 1d8f56ca80
commit 6c35a0234e
1 changed files with 2 additions and 2 deletions

View File

@ -105,12 +105,12 @@ struct CoordsXY
const CoordsXY operator+(const CoordsXY& rhs) const
{
return { rhs.x + x, rhs.y + y };
return { x + rhs.x, y + rhs.y };
}
const CoordsXY operator-(const CoordsXY& rhs) const
{
return { rhs.x - x, rhs.y - y };
return { x - rhs.x, y - rhs.y };
}
CoordsXY Rotate(int32_t direction) const