Skip to content
Snippets Groups Projects
Commit 1aee002e authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Fixed subtraction bug

parent 64c0b2eb
No related branches found
No related tags found
No related merge requests found
......@@ -115,10 +115,10 @@ class Vec2{
rhs += lhs;
return rhs;
}
friend Vec2 operator-(const Vec2& lhs, Vec2 rhs) noexcept
friend Vec2 operator-(Vec2 lhs, const Vec2& rhs) noexcept
{
rhs -= lhs;
return rhs;
lhs -= rhs;
return lhs;
}
friend Vec2 operator*(const value_t s, Vec2 v) noexcept
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment