diff --git a/include/Nazara/Math/Vector3.inl b/include/Nazara/Math/Vector3.inl index bef3ef73e..9661b7d31 100644 --- a/include/Nazara/Math/Vector3.inl +++ b/include/Nazara/Math/Vector3.inl @@ -488,8 +488,8 @@ template bool NzVector3::operator==(const NzVector3& vec) const { return NzNumberEquals(x, vec.x) && - NzNumberEquals(y, vec.y) && - NzNumberEquals(z, vec.z); + NzNumberEquals(y, vec.y) && + NzNumberEquals(z, vec.z); } template @@ -503,7 +503,7 @@ bool NzVector3::operator<(const NzVector3& vec) const { if (x == vec.x) { - if (y < vec.y) + if (y == vec.y) return z < vec.z; else return y < vec.y; @@ -517,7 +517,7 @@ bool NzVector3::operator<=(const NzVector3& vec) const { if (x == vec.x) { - if (y < vec.y) + if (y == vec.y) return z <= vec.z; else return y < vec.y;