From 5e66329117625f53c9a9c0cb1e55d01c585237f5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 25 Aug 2010 09:28:29 +0000 Subject: [PATCH] LURE: Workaround for bug #3047234 in English EGA version svn-id: r52378 --- engines/lure/scripts.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 41a09e0d1d8..20758466ad4 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -1297,6 +1297,11 @@ bool HotspotScript::execute(Hotspot *h) { default: // Set the animation frame number + + // WORKAROUND: In Lure English EGA, the apparatus in room #30 can be set with an invalid frame number + if ((h->hotspotId() == 1059) && (opcode >= h->numFrames())) + opcode = h->numFrames() - 1; + debugC(ERROR_DETAILED, kLureDebugScripts, "SET FRAME NUMBER = %d", opcode); h->setFrameNumber(opcode);