From 8677f9aa3c689364fd1ca546520e07e65d742d71 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 25 Oct 2013 07:58:15 +0200 Subject: AVALANCHE: Fix one more out of bounds - CID 1109651 --- engines/avalanche/avalot.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3