From 9b52ce590f011fc5d3606f38eb7a8f07c39d4b59 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 24 Nov 2015 17:37:37 +0100 Subject: MADS: Phantom: Fix asserts in moveCatacombs --- engines/mads/phantom/game_phantom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mads/phantom') 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]); } -- cgit v1.2.3