diff options
author | James Brown | 2002-05-11 19:17:58 +0000 |
---|---|---|
committer | James Brown | 2002-05-11 19:17:58 +0000 |
commit | d63e03a00e4db2389e7d72c0c6b9f9f13b05a5de (patch) | |
tree | 6a6834719c8bdcbe37ff5b881b8fca8a53765c5e /script_v1.cpp | |
parent | 0d1e7d04ae15b4c769d4eeaccfe37751eb679072 (diff) | |
download | scummvm-rg350-d63e03a00e4db2389e7d72c0c6b9f9f13b05a5de.tar.gz scummvm-rg350-d63e03a00e4db2389e7d72c0c6b9f9f13b05a5de.tar.bz2 scummvm-rg350-d63e03a00e4db2389e7d72c0c6b9f9f13b05a5de.zip |
Add paramless 'r' debug command to show the current room.
svn-id: r4280
Diffstat (limited to 'script_v1.cpp')
-rw-r--r-- | script_v1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script_v1.cpp b/script_v1.cpp index f66a9000f7..607bdb11f3 100644 --- a/script_v1.cpp +++ b/script_v1.cpp @@ -1454,7 +1454,8 @@ void Scumm::o5_ifClassOfIs() while ((_opcode = fetchScriptByte()) != 0xFF) { cls = getVarOrDirectWord(0x80); - b = getClass(act, cls); + if (cls) + b = getClass(act, cls); if (cls & 0x80 && !b || !(cls & 0x80) && b) cond = false; |