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 {