diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-28 19:26:38 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-28 19:26:38 +0100 |
commit | 8cb3c071510e7675e35d59c73fc0c86ca30d51a9 (patch) | |
tree | 00e78192e09ca5f130ea4bbfed5f46464e72ec2a /src/math | |
parent | Update Script.cpp (diff) | |
download | re3-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')
-rw-r--r-- | src/math/Vector.h | 4 |
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; } |