SCI: Changed object list in Script instances to use Common:::Array
svn-id: r40431
This commit is contained in:
parent
36818ced2a
commit
019f87fd1b
9 changed files with 82 additions and 134 deletions
|
@ -673,7 +673,7 @@ int determine_reg_type(EngineState *s, reg_t reg, int allow_invalid) {
|
|||
if (reg.offset <= (*(Script *)mobj).buf_size && reg.offset >= -SCRIPT_OBJECT_MAGIC_OFFSET
|
||||
&& RAW_IS_OBJECT((*(Script *)mobj).buf + reg.offset)) {
|
||||
int idx = RAW_GET_CLASS_INDEX((Script *)mobj, reg);
|
||||
if (idx >= 0 && idx < (*(Script *)mobj).objects_nr)
|
||||
if (idx >= 0 && (uint)idx < (*(Script *)mobj)._objects.size())
|
||||
return KSIG_OBJECT;
|
||||
else
|
||||
return KSIG_REF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue