diff options
author | Filippos Karapetis | 2009-09-17 08:51:38 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-09-17 08:51:38 +0000 |
commit | f890a69428b0d5ed0314db98cde06c7246041ac4 (patch) | |
tree | d34d28e6f6351eed01189b2f9c8a61112026a0fc /engines/sci/engine/scriptdebug.cpp | |
parent | 0a037ccc45cda6a2eb1f1604c2c5ec64977ed0ce (diff) | |
download | scummvm-rg350-f890a69428b0d5ed0314db98cde06c7246041ac4.tar.gz scummvm-rg350-f890a69428b0d5ed0314db98cde06c7246041ac4.tar.bz2 scummvm-rg350-f890a69428b0d5ed0314db98cde06c7246041ac4.zip |
Changed the way object selectors are accessed, by removing the relevant defines and adding appropriate methods to the Object structure
svn-id: r44138
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 38879a48ae..670aee3981 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -81,8 +81,8 @@ int propertyOffsetToId(SegManager *segMan, int prop_ofs, reg_t objp) { if (segMan->sciVersion() < SCI_VERSION_1_1) selectoroffset = ((byte *)(obj->base_obj)) + SCRIPT_SELECTOR_OFFSET + selectors * 2; else { - if (!(obj->_variables[SCRIPT_INFO_SELECTOR].offset & SCRIPT_INFO_CLASS)) { - obj = segMan->getObject(obj->_variables[SCRIPT_SUPERCLASS_SELECTOR]); + if (!(obj->getInfoSelector(version).offset & SCRIPT_INFO_CLASS)) { + obj = segMan->getObject(obj->getSuperClassSelector(version)); selectoroffset = (byte *)obj->base_vars; } else selectoroffset = (byte *)obj->base_vars; |