summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-14 16:27:33 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-14 16:27:33 +0000
commite0852959d2415174e6ea2701478a2916e6261aca (patch)
tree369a96353c1f14337e5d7ab876625b10a19a8d22 /src/game.cpp
parentebdd5b00db488c878fa4d57069e94eb19d3326db (diff)
downloadmana-e0852959d2415174e6ea2701478a2916e6261aca.tar.gz
mana-e0852959d2415174e6ea2701478a2916e6261aca.tar.bz2
mana-e0852959d2415174e6ea2701478a2916e6261aca.tar.xz
mana-e0852959d2415174e6ea2701478a2916e6261aca.zip
Fix missing parentheses in a negated check.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
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++;
}