aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-02 10:19:52 -0500
committerMatthew Hoops2011-03-02 10:20:31 -0500
commit167ff5dd1b6a9670be5e712c36bff92d9d6a4bf0 (patch)
tree160a56febd61c472d9ca3231cee174d9f800f82c /engines/sci
parent840178a9071971a816c0fa184e262dfff379fa07 (diff)
downloadscummvm-rg350-167ff5dd1b6a9670be5e712c36bff92d9d6a4bf0.tar.gz
scummvm-rg350-167ff5dd1b6a9670be5e712c36bff92d9d6a4bf0.tar.bz2
scummvm-rg350-167ff5dd1b6a9670be5e712c36bff92d9d6a4bf0.zip
SCI: Fix garbage collection for SCI32
SCI32 has no ports
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/gc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp
index 15be17fd32..85238ec851 100644
--- a/engines/sci/engine/gc.cpp
+++ b/engines/sci/engine/gc.cpp
@@ -155,7 +155,9 @@ AddrSet *findAllActiveReferences(EngineState *s) {
debugC(kDebugLevelGC, "[GC] -- Finished explicitly loaded scripts, done with root set");
processWorkList(s->_segMan, wm, heap);
- processEngineHunkList(wm);
+
+ if (getSciVersion() <= SCI_VERSION_1_1)
+ processEngineHunkList(wm);
return normalizeAddresses(s->_segMan, wm._map);
}