diff options
author | richiesams | 2013-08-18 15:42:24 -0500 |
---|---|---|
committer | richiesams | 2013-08-18 19:53:05 -0500 |
commit | d26c814d1e0ed76b4b4440e5798ccd012bd4858d (patch) | |
tree | df9ea40ae312638927812d1cf2f96473afe9f1c1 /engines | |
parent | 6ee93ad5c2b2ea577a587af172a28b100a9956d8 (diff) | |
download | scummvm-rg350-d26c814d1e0ed76b4b4440e5798ccd012bd4858d.tar.gz scummvm-rg350-d26c814d1e0ed76b4b4440e5798ccd012bd4858d.tar.bz2 scummvm-rg350-d26c814d1e0ed76b4b4440e5798ccd012bd4858d.zip |
ZVISION: Force & operator to have precedence over == operator
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/script_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 8a1b60a0dc..c80b5a2bc4 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -265,7 +265,7 @@ void ScriptManager::changeLocationIntern() { // Add all the local puzzles to the queue to be checked for (Common::List<Puzzle>::iterator iter = _activePuzzles.begin(); iter != _activePuzzles.end(); iter++) { // Reset any Puzzles that have the flag ONCE_PER_INST - if ((*iter).flags & Puzzle::ONCE_PER_INST == Puzzle::ONCE_PER_INST) { + if (((*iter).flags & Puzzle::ONCE_PER_INST) == Puzzle::ONCE_PER_INST) { setStateValue((*iter).key, 0); } @@ -275,7 +275,7 @@ void ScriptManager::changeLocationIntern() { // Add all the global puzzles to the queue to be checked for (Common::List<Puzzle>::iterator iter = _globalPuzzles.begin(); iter != _globalPuzzles.end(); iter++) { // Reset any Puzzles that have the flag ONCE_PER_INST - if ((*iter).flags & Puzzle::ONCE_PER_INST == Puzzle::ONCE_PER_INST) { + if (((*iter).flags & Puzzle::ONCE_PER_INST) == Puzzle::ONCE_PER_INST) { setStateValue((*iter).key, 0); } |