SCI: Skip Ports when iterating over Windows in GC
This commit is contained in:
parent
ce288024b4
commit
db536da8d3
4 changed files with 19 additions and 12 deletions
|
@ -89,11 +89,11 @@ static void processEngineHunkList(WorklistManager &wm) {
|
|||
PortList windowList = g_sci->_gfxPorts->_windowList;
|
||||
|
||||
for (PortList::const_iterator it = windowList.begin(); it != windowList.end(); ++it) {
|
||||
// FIXME: We also store Port objects in the window list.
|
||||
// We should add a check that we really only pass windows here...
|
||||
Window *wnd = ((Window *)*it);
|
||||
wm.push(wnd->hSaved1);
|
||||
wm.push(wnd->hSaved2);
|
||||
if ((*it)->isWindow()) {
|
||||
Window *wnd = ((Window *)*it);
|
||||
wm.push(wnd->hSaved1);
|
||||
wm.push(wnd->hSaved2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue