SCI: Changed object / script local vars storage to use a Common::Array
svn-id: r40515
This commit is contained in:
parent
0255cd0213
commit
7f29670843
11 changed files with 99 additions and 129 deletions
|
@ -686,7 +686,7 @@ int determine_reg_type(EngineState *s, reg_t reg, int allow_invalid) {
|
|||
return KSIG_OBJECT | KSIG_INVALID;
|
||||
|
||||
case MEM_OBJ_LOCALS:
|
||||
if (allow_invalid || reg.offset < (*(LocalVariables *)mobj).nr * sizeof(reg_t))
|
||||
if (allow_invalid || reg.offset < (*(LocalVariables *)mobj)._locals.size() * sizeof(reg_t))
|
||||
return KSIG_REF;
|
||||
else
|
||||
return KSIG_REF | KSIG_INVALID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue