aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-15 19:06:56 +0200
committerEugene Sandulenko2019-10-15 19:07:18 +0200
commitb8e7f45760d935af90588754cce6ab378adffb0c (patch)
tree64aa31e66da5e8ccec94d09a8a7552e4b47cdb76 /graphics/macgui
parent94c98ca966a9b39ba1b14b26b237f24df05da42b (diff)
downloadscummvm-rg350-b8e7f45760d935af90588754cce6ab378adffb0c.tar.gz
scummvm-rg350-b8e7f45760d935af90588754cce6ab378adffb0c.tar.bz2
scummvm-rg350-b8e7f45760d935af90588754cce6ab378adffb0c.zip
GRAPHICS: MACGUI: Fix window deletion
Diffstat (limited to 'graphics/macgui')
-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 cd72d5cf1f..62d3710157 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -436,7 +436,7 @@ void MacWindowManager::removeMarked() {
_lastId = 0;
for (Common::HashMap<uint, BaseMacWindow *>::iterator lit = _windows.begin(); lit != _windows.end(); lit++) {
if (lit->_key > (uint)_lastId)
- _lastId = lit->_key;
+ _lastId = lit->_key + 1;
}
}