From 167ff5dd1b6a9670be5e712c36bff92d9d6a4bf0 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 2 Mar 2011 10:19:52 -0500 Subject: SCI: Fix garbage collection for SCI32 SCI32 has no ports --- engines/sci/engine/gc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine/gc.cpp') 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); } -- cgit v1.2.3