1
0
Fork 0

include/Spectre/Math/Vector2.inl: fixing stupid error in one of the scalar compare functions (forgot to use the vector object)

This commit is contained in:
Henrik Hautakoski 2018-02-27 21:18:16 +01:00
parent 72ee3fbfde
commit e57f099a3c

View file

@ -284,7 +284,7 @@ inline bool operator<=(T s, const Vector2<T>& v)
template <typename T>
inline bool operator>(const Vector2<T>& v, T s)
{
return x > s && y > s;
return v.x > s && v.y > s;
}
template <typename T>