From 0520de7ab02bb3733f748e19e3f9a102cc398712 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 30 Sep 2013 23:19:38 +0200 Subject: [PATCH] Fixed Vector3::operator[==|<=] Thanks to OveRdrivR Former-commit-id: fa93eb7124e3b322407d1488c8530312c2019792 --- include/Nazara/Math/Vector3.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;