summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-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;
}