diff options
author | Strangerke | 2013-10-25 07:58:15 +0200 |
---|---|---|
committer | Strangerke | 2013-10-25 07:58:15 +0200 |
commit | 8677f9aa3c689364fd1ca546520e07e65d742d71 (patch) | |
tree | 72c27b5ccd8da3187ffa7dc2b227e410c43f8e69 | |
parent | 334e429c0ac0052f11b04e120734aae772e83074 (diff) | |
download | scummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.tar.gz scummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.tar.bz2 scummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.zip |
AVALANCHE: Fix one more out of bounds - CID 1109651
-rw-r--r-- | engines/avalanche/avalot.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp index 11729ea779..9d65ed7484 100644 --- a/engines/avalanche/avalot.cpp +++ b/engines/avalanche/avalot.cpp @@ -1676,6 +1676,9 @@ void AvalancheEngine::flipRoom(Room room, byte ped) { if (_room == kRoomLustiesRoom) _enterCatacombsFromLustiesRoom = true; + if (_room > kRoomMap) + return; + enterRoom(room, ped); _animation->appearPed(0, ped - 1); _enterCatacombsFromLustiesRoom = false; |