SCI: Change Script::getObject() to accept a reg_t

This is needed for upcoming changes to the Script class
This commit is contained in:
Filippos Karapetis 2012-06-15 11:44:54 +03:00
parent 425926ed7e
commit 577d7e41c9
4 changed files with 11 additions and 11 deletions

View file

@ -228,7 +228,7 @@ Object *SegManager::getObject(reg_t pos) const {
Script *scr = (Script *)mobj;
if (pos.offset <= scr->getBufSize() && pos.offset >= -SCRIPT_OBJECT_MAGIC_OFFSET
&& RAW_IS_OBJECT(scr->getBuf(pos.offset))) {
obj = scr->getObject(pos.offset);
obj = scr->getObject(pos);
}
}
}