summaryrefslogtreecommitdiffstats
path: root/src/math/Vector.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-28 19:26:38 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-28 19:26:38 +0100
commit8cb3c071510e7675e35d59c73fc0c86ca30d51a9 (patch)
tree00e78192e09ca5f130ea4bbfed5f46464e72ec2a /src/math/Vector.h
parentUpdate Script.cpp (diff)
downloadre3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar.gz
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar.bz2
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar.lz
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar.xz
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.tar.zst
re3-8cb3c071510e7675e35d59c73fc0c86ca30d51a9.zip
Diffstat (limited to 'src/math/Vector.h')
-rw-r--r--src/math/Vector.h4
1 files changed, 2 insertions, 2 deletions
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;
}