diff --git a/include/Spectre/Math/Vector2.inl b/include/Spectre/Math/Vector2.inl index a22f343..f636623 100644 --- a/include/Spectre/Math/Vector2.inl +++ b/include/Spectre/Math/Vector2.inl @@ -270,7 +270,7 @@ inline bool operator<(T s, const Vector2& v) } template -inline bool operator<=(const Vector2 v, T s) +inline bool operator<=(const Vector2& v, T s) { return v.x <= s && v.y <= s; } @@ -282,7 +282,7 @@ inline bool operator<=(T s, const Vector2& v) } template -inline bool operator>(const Vector2 v, T s) +inline bool operator>(const Vector2& v, T s) { return x > s && y > s; } @@ -294,7 +294,7 @@ inline bool operator>(T s, const Vector2& v) } template -inline bool operator>=(const Vector2 v, T s) +inline bool operator>=(const Vector2& v, T s) { return v.x >= s && v.y >= s; }