Fixed Vector3i != operator

This commit is contained in:
Marc Gilleron 2017-08-28 01:44:12 +02:00
parent fdb61c9b62
commit 488ca3e6fd

View File

@ -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 {