From f890a69428b0d5ed0314db98cde06c7246041ac4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 17 Sep 2009 08:51:38 +0000 Subject: Changed the way object selectors are accessed, by removing the relevant defines and adding appropriate methods to the Object structure svn-id: r44138 --- engines/sci/engine/savegame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/engine/savegame.cpp') diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 11599797e2..0782530a7c 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -613,11 +613,11 @@ static void reconstruct_scripts(EngineState *s, SegManager *self) { int funct_area = READ_LE_UINT16( data + SCRIPT_FUNCTAREAPTR_OFFSET ); Object *base_obj; - base_obj = s->segMan->getObject(scr->_objects[j]._variables[SCRIPT_SPECIES_SELECTOR]); + base_obj = s->segMan->getObject(scr->_objects[j].getSpeciesSelector(version)); if (!base_obj) { warning("Object without a base class: Script %d, index %d (reg address %04x:%04x", - scr->_nr, j, PRINT_REG(scr->_objects[j]._variables[SCRIPT_SPECIES_SELECTOR])); + scr->_nr, j, PRINT_REG(scr->_objects[j].getSpeciesSelector(version))); continue; } scr->_objects[j].variable_names_nr = base_obj->_variables.size(); -- cgit v1.2.3