From e23fd08dfbdac9d6eedb78813d3504eeccba31a5 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 8 Mar 2009 02:17:14 +0000 Subject: LOL: fixed bug reported by MD5 (crashes and freezes caused by calls to non-existent sub scripts) svn-id: r39209 --- engines/kyra/timer_lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra/timer_lol.cpp') diff --git a/engines/kyra/timer_lol.cpp b/engines/kyra/timer_lol.cpp index d646b13f0e..98a4f2845b 100644 --- a/engines/kyra/timer_lol.cpp +++ b/engines/kyra/timer_lol.cpp @@ -150,7 +150,7 @@ void LoLEngine::timerUpdatePortraitAnimations(int skipUpdate) { } void LoLEngine::timerUpdateLampState(int timerNum) { - if ((_screen->_drawGuiFlag & 0x800) && (_screen->_drawGuiFlag & 0x400) && _lampStatusUnk) + if ((_gameFlags[15] & 0x800) && (_gameFlags[15] & 0x400) && _lampStatusUnk) _lampStatusUnk--; } -- cgit v1.2.3