diff options
author | Max Horn | 2009-05-10 19:17:51 +0000 |
---|---|---|
committer | Max Horn | 2009-05-10 19:17:51 +0000 |
commit | 019f87fd1b25f88c46615edbe09de6618d4b3bf7 (patch) | |
tree | e1948dd0ee65fb7cec3b59f5bc59bf2cc0946631 /engines/sci/engine/gc.cpp | |
parent | 36818ced2a546ccb5318adaa22f8d90794edca8a (diff) | |
download | scummvm-rg350-019f87fd1b25f88c46615edbe09de6618d4b3bf7.tar.gz scummvm-rg350-019f87fd1b25f88c46615edbe09de6618d4b3bf7.tar.bz2 scummvm-rg350-019f87fd1b25f88c46615edbe09de6618d4b3bf7.zip |
SCI: Changed object list in Script instances to use Common:::Array
svn-id: r40431
Diffstat (limited to 'engines/sci/engine/gc.cpp')
-rw-r--r-- | engines/sci/engine/gc.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp index 7487e7a0c6..9de5357b38 100644 --- a/engines/sci/engine/gc.cpp +++ b/engines/sci/engine/gc.cpp @@ -118,15 +118,12 @@ reg_t_hash_map *find_all_used_references(EngineState *s) { Script *script = (Script *)sm->_heap[i]; if (script->lockers) { // Explicitly loaded? - int obj_nr; - // Locals, if present wm.push(make_reg(script->locals_segment, 0)); // All objects (may be classes, may be indirectly reachable) - for (obj_nr = 0; obj_nr < script->objects_nr; obj_nr++) { - Object *obj = script->objects + obj_nr; - wm.push(obj->pos); + for (uint obj_nr = 0; obj_nr < script->_objects.size(); obj_nr++) { + wm.push(script->_objects[obj_nr].pos); } } } |