From e0852959d2415174e6ea2701478a2916e6261aca Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Wed, 14 Sep 2005 16:27:33 +0000 Subject: Fix missing parentheses in a negated check. --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.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++; } -- cgit v1.2.3-70-g09d2