diff options
author | Eugene Sandulenko | 2019-10-17 09:27:38 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-17 09:27:38 +0200 |
commit | 23a9ce18807d0d89a24b1d579519e837e2982f6f (patch) | |
tree | 85d49f6a80324b5798ea9e8f78d4796f71d60b65 | |
parent | 0334d953646f18df5cd88023ec042a5fed3d7602 (diff) | |
download | scummvm-rg350-23a9ce18807d0d89a24b1d579519e837e2982f6f.tar.gz scummvm-rg350-23a9ce18807d0d89a24b1d579519e837e2982f6f.tar.bz2 scummvm-rg350-23a9ce18807d0d89a24b1d579519e837e2982f6f.zip |
GRAPHICS: MACGUI: Fix crash when clicking on the top window
-rw-r--r-- | graphics/macgui/macwindowmanager.cpp | 2 |
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; } } |