From 2f2ca8ac21b778736742857b8a45741f9db47665 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 28 Mar 2005 10:14:08 +0000 Subject: HE80+ reports whole _classData value of object, if no args are given. Fixes exit arrows in later HE games. svn-id: r17271 --- scumm/script_v6.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scumm/script_v6.cpp') 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); -- cgit v1.2.3