aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-07-30 12:02:28 +0000
committerJames Brown2002-07-30 12:02:28 +0000
commiteae0d3910da55d811209e98a386eb9513a212bf0 (patch)
tree5a7044e68514b6f7f23e8e43be24338db832bb4a
parent9fa757bca3cb767d66006e8480ef964564c881e7 (diff)
downloadscummvm-rg350-eae0d3910da55d811209e98a386eb9513a212bf0.tar.gz
scummvm-rg350-eae0d3910da55d811209e98a386eb9513a212bf0.tar.bz2
scummvm-rg350-eae0d3910da55d811209e98a386eb9513a212bf0.zip
Remove an error to fix bug 582476
svn-id: r4681
-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;