From 8cb3c071510e7675e35d59c73fc0c86ca30d51a9 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 28 Nov 2020 21:26:38 +0300 Subject: some nasty FIX_BUGS for SLIDE_OBJECT --- src/math/Vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math/Vector.h') diff --git a/src/math/Vector.h b/src/math/Vector.h index 082b296f..4cc2171f 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -65,11 +65,11 @@ public: return CVector(-x, -y, -z); } - const bool operator==(CVector const &right) { + const bool operator==(CVector const &right) const { return x == right.x && y == right.y && z == right.z; } - const bool operator!=(CVector const &right) { + const bool operator!=(CVector const &right) const { return x != right.x || y != right.y || z != right.z; } -- cgit v1.2.3