SCI: Changed object / script local vars storage to use a Common::Array

svn-id: r40515
This commit is contained in:
Max Horn 2009-05-12 23:30:42 +00:00
parent 0255cd0213
commit 7f29670843
11 changed files with 99 additions and 129 deletions

View file

@ -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;