aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2013-10-25 07:58:15 +0200
committerStrangerke2013-10-25 07:58:15 +0200
commit8677f9aa3c689364fd1ca546520e07e65d742d71 (patch)
tree72c27b5ccd8da3187ffa7dc2b227e410c43f8e69 /engines
parent334e429c0ac0052f11b04e120734aae772e83074 (diff)
downloadscummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.tar.gz
scummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.tar.bz2
scummvm-rg350-8677f9aa3c689364fd1ca546520e07e65d742d71.zip
AVALANCHE: Fix one more out of bounds - CID 1109651
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/avalot.cpp3
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;