SCI: Change Script::getObject() to accept a reg_t
This is needed for upcoming changes to the Script class
This commit is contained in:
parent
425926ed7e
commit
577d7e41c9
4 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue