aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/items_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-03-08 02:17:14 +0000
committerFlorian Kagerer2009-03-08 02:17:14 +0000
commite23fd08dfbdac9d6eedb78813d3504eeccba31a5 (patch)
treeba0a0c81477f8327a2b8275e27cf17fecc12b3da /engines/kyra/items_lol.cpp
parentcc89a46a0ef8b9bd62e69ab0d6a8c1e28bc46781 (diff)
downloadscummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.tar.gz
scummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.tar.bz2
scummvm-rg350-e23fd08dfbdac9d6eedb78813d3504eeccba31a5.zip
LOL: fixed bug reported by MD5 (crashes and freezes caused by calls to non-existent sub scripts)
svn-id: r39209
Diffstat (limited to 'engines/kyra/items_lol.cpp')
-rw-r--r--engines/kyra/items_lol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/items_lol.cpp b/engines/kyra/items_lol.cpp
index 7faee163e1..5eb0214ac6 100644
--- a/engines/kyra/items_lol.cpp
+++ b/engines/kyra/items_lol.cpp
@@ -220,7 +220,7 @@ void LoLEngine::setHandItem(uint16 itemIndex) {
int mouseOffs = 0;
- if (itemIndex && !(_screen->_drawGuiFlag & 0x200)) {
+ if (itemIndex && !(_gameFlags[15] & 0x200)) {
mouseOffs = 10;
if (!_hideControls || textEnabled())
_txt->printMessage(0, getLangString(0x403E), getLangString(_itemProperties[_itemsInPlay[itemIndex].itemPropertyIndex].nameStringId));