aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v6.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index d9ff2a583f..4140834325 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -1027,6 +1027,11 @@ void ScummEngine_v6::o6_ifClassOfIs() {
num = getStackList(args, ARRAYSIZE(args));
obj = pop();
+ if (_heversion >= 80 && num == 0) {
+ push(_classData[obj]);
+ return;
+ }
+
while (--num >= 0) {
cls = args[num];
b = getClass(obj, cls);