diff options
author | Travis Howell | 2005-03-28 10:14:08 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-28 10:14:08 +0000 |
commit | 2f2ca8ac21b778736742857b8a45741f9db47665 (patch) | |
tree | f9101b7b47c78f03795e19a6635b8c60ed6fc4d6 /scumm/script_v6.cpp | |
parent | 11e1e246cc4022f088a9e68bcd4d44f7d6574932 (diff) | |
download | scummvm-rg350-2f2ca8ac21b778736742857b8a45741f9db47665.tar.gz scummvm-rg350-2f2ca8ac21b778736742857b8a45741f9db47665.tar.bz2 scummvm-rg350-2f2ca8ac21b778736742857b8a45741f9db47665.zip |
HE80+ reports whole _classData value of object, if no args are given.
Fixes exit arrows in later HE games.
svn-id: r17271
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 5 |
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); |