aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/macgui/macwindowmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 338be38050..7e7c1b1627 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -435,7 +435,7 @@ void MacWindowManager::removeMarked() {
// Do we need compact lastid?
_lastId = 0;
for (Common::HashMap<uint, BaseMacWindow *>::iterator lit = _windows.begin(); lit != _windows.end(); lit++) {
- if (lit->_key > (uint)_lastId)
+ if (lit->_key >= (uint)_lastId)
_lastId = lit->_key + 1;
}
}