aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/dvector.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/star_control/dvector.h')
-rw-r--r--engines/titanic/star_control/dvector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/star_control/dvector.h b/engines/titanic/star_control/dvector.h
index fcb463b715..d3638cfeac 100644
--- a/engines/titanic/star_control/dvector.h
+++ b/engines/titanic/star_control/dvector.h
@@ -58,14 +58,14 @@ public:
* Returns true if the passed vector equals this one
*/
bool operator==(const DVector &src) const {
- return _x != src._x || _y != src._y || _z != src._z;
+ return _x == src._x && _y == src._y && _z == src._z;
}
/**
* Returns true if the passed vector does not equal this one
*/
bool operator!=(const DVector &src) const {
- return !operator==(src);
+ return _x != src._x || _y != src._y || _z != src._z;
}
DVector operator+(const DVector &delta) const {