summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/game.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b3a695a..f53262e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2005-09-14 Björn Steinbrink <B.Steinbrink@gmx.de>
+ * src/game.cpp: Fix missing parentheses in a negated check.
* src/engine.cpp, src/engine.h, src/game.cpp: Moved Map management
code completely into engine.cpp.
* src/net/messagein.cpp, src/net/messagein.h, src/net/messageout.cpp,
diff --git a/src/game.cpp b/src/game.cpp
index e6ad0fac..bbec5eae 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1851,7 +1851,7 @@ void do_parse()
// Unequip any existing equipped item in this position
int mask = 1;
int position = 0;
- while (!equipPoint & mask) {
+ while (!(equipPoint & mask)) {
mask <<= 1;
position++;
}
@@ -1902,7 +1902,7 @@ void do_parse()
int mask = 1;
int position = 0;
- while (!equipPoint & mask) {
+ while (!(equipPoint & mask)) {
mask <<= 1;
position++;
}