aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/phantom
diff options
context:
space:
mode:
authorStrangerke2015-11-24 17:37:37 +0100
committerStrangerke2015-11-24 17:37:37 +0100
commit9b52ce590f011fc5d3606f38eb7a8f07c39d4b59 (patch)
tree73576dfb577c7e6611212706f95584b39343875b /engines/mads/phantom
parentb052fe9308c7c24e61d7a616404fbeff7d650946 (diff)
downloadscummvm-rg350-9b52ce590f011fc5d3606f38eb7a8f07c39d4b59.tar.gz
scummvm-rg350-9b52ce590f011fc5d3606f38eb7a8f07c39d4b59.tar.bz2
scummvm-rg350-9b52ce590f011fc5d3606f38eb7a8f07c39d4b59.zip
MADS: Phantom: Fix asserts in moveCatacombs
Diffstat (limited to 'engines/mads/phantom')
-rw-r--r--engines/mads/phantom/game_phantom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/phantom/game_phantom.cpp b/engines/mads/phantom/game_phantom.cpp
index 597d404dc7..b806c1e52a 100644
--- a/engines/mads/phantom/game_phantom.cpp
+++ b/engines/mads/phantom/game_phantom.cpp
@@ -891,8 +891,8 @@ int GamePhantom::exitCatacombs(int dir) {
}
void GamePhantom::moveCatacombs(int dir) {
- assert(_globals[kCatacombsRoom] = CLIP(_globals[kCatacombsRoom], 0, _catacombSize));
- assert(dir = CLIP(dir, 0, 3));
+ assert(_globals[kCatacombsRoom] == CLIP(_globals[kCatacombsRoom], 0, _catacombSize));
+ assert(dir == CLIP(dir, 0, 3));
newCatacombRoom(_catacombs[_globals[kCatacombsRoom]]._fromDirection[dir], _catacombs[_globals[kCatacombsRoom]]._exit[dir]);
}