From 488ca3e6fdd88fa4889ee73607b37f3e7d060a1d Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Mon, 28 Aug 2017 01:44:12 +0200 Subject: [PATCH] Fixed Vector3i != operator --- vector3i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector3i.h b/vector3i.h index 0be9292..8dc7782 100644 --- a/vector3i.h +++ b/vector3i.h @@ -142,7 +142,7 @@ _FORCE_INLINE_ bool operator==(const Vector3i &a, const Vector3i &b) { } _FORCE_INLINE_ bool operator!=(const Vector3i &a, const Vector3i &b) { - return a.x != b.x && a.y != b.y && a.z != b.z; + return a.x != b.x || a.y != b.y || a.z != b.z; } _FORCE_INLINE_ int Vector3i::distance_sq(const Vector3i &other) const {