diff options
author | Max Horn | 2009-05-08 09:53:10 +0000 |
---|---|---|
committer | Max Horn | 2009-05-08 09:53:10 +0000 |
commit | d8738b9090c1b8d866f18962be428076de6faae2 (patch) | |
tree | 873675d8f4d5bf696f836998d38b21da7929f09a /engines/sci/engine/gc.cpp | |
parent | 76a48947dec0a79ca674948fb199adfdc911d01c (diff) | |
download | scummvm-rg350-d8738b9090c1b8d866f18962be428076de6faae2.tar.gz scummvm-rg350-d8738b9090c1b8d866f18962be428076de6faae2.tar.bz2 scummvm-rg350-d8738b9090c1b8d866f18962be428076de6faae2.zip |
SCI: Started to merge SegInterface into MemObject
svn-id: r40373
Diffstat (limited to 'engines/sci/engine/gc.cpp')
-rw-r--r-- | engines/sci/engine/gc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp index f8be73f26a..09c8469197 100644 --- a/engines/sci/engine/gc.cpp +++ b/engines/sci/engine/gc.cpp @@ -150,8 +150,8 @@ reg_t_hash_map *find_all_used_references(EngineState *s) { #ifdef DEBUG_GC_VERBOSE sciprintf("[GC] Checking "PREG"\n", PRINT_REG(reg)); #endif - if (reg.segment < sm->_heap.size() && interfaces[reg.segment]) - interfaces[reg.segment]->listAllOutgoingReferences(s, reg, &wm, add_outgoing_refs); + if (reg.segment < sm->_heap.size() && sm->_heap[reg.segment]) + sm->_heap[reg.segment]->listAllOutgoingReferences(s, reg, &wm, add_outgoing_refs); } } @@ -210,7 +210,7 @@ void run_gc(EngineState *s) { #ifdef DEBUG_GC deallocator.segnames[deallocator.interfce->getType()] = deallocator.interfce->type; #endif - deallocator.interfce->listAllDeallocatable(&deallocator, free_unless_used); + sm->_heap[seg_nr]->listAllDeallocatable(seg_nr, &deallocator, free_unless_used); delete deallocator.interfce; } } |