From 8d1431a5ab0efe7c4f84f7c0fcdff10f8fe39ad1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 10 Mar 2010 20:56:54 +0000 Subject: AGOS: cleanup svn-id: r48227 --- engines/agos/script_e2.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/agos/script_e2.cpp') diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp index 827dbf620d..f8af7db214 100644 --- a/engines/agos/script_e2.cpp +++ b/engines/agos/script_e2.cpp @@ -644,17 +644,17 @@ void AGOSEngine_Elvira2::oe2_printMonsterDamage() { void AGOSEngine_Elvira2::oe2_isAdjNoun() { // 179: item unk1 unk2 is Item *item = getNextItemPtr(); - int16 a = getNextWord(), n = getNextWord(); + int16 a = getNextWord(); + int16 n = getNextWord(); - if (getGameType() == GType_ELVIRA2) { + if (getGameType() == GType_ELVIRA2 && item == NULL) { // WORKAROUND bug #1745996: A NULL item can occur when // interacting with items in the dinning room - if (item == NULL) { - setScriptCondition(false); - return; - } + setScriptCondition(false); + return; } + assert(item); setScriptCondition(item->adjective == a && item->noun == n); } -- cgit v1.2.3