aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index e9bea054e6..59cb5b986e 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -1407,10 +1407,11 @@ void Scumm::o5_ifClassOfIs()
while ((_opcode = fetchScriptByte()) != 0xFF) {
cls = getVarOrDirectWord(0x80);
- if (cls)
- b = getClass(act, cls);
+
+ if (!cls) // FIXME: Ender can't remember why this is here,
+ b=false; // but it fixes an oddball zak256 crash
else
- error("FIXME! Ender forgot why he added this. Please report this as a bug code %d", cls);
+ b = getClass(act, cls);
if (cls & 0x80 && !b || !(cls & 0x80) && b)
cond = false;