From e57f099a3cd4d335f47ed066b74f3b47f0ee4e4d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 27 Feb 2018 21:18:16 +0100 Subject: [PATCH] include/Spectre/Math/Vector2.inl: fixing stupid error in one of the scalar compare functions (forgot to use the vector object) --- include/Spectre/Math/Vector2.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Spectre/Math/Vector2.inl b/include/Spectre/Math/Vector2.inl index f636623..0eea069 100644 --- a/include/Spectre/Math/Vector2.inl +++ b/include/Spectre/Math/Vector2.inl @@ -284,7 +284,7 @@ inline bool operator<=(T s, const Vector2& v) template inline bool operator>(const Vector2& v, T s) { - return x > s && y > s; + return v.x > s && v.y > s; } template