mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
GRAPHICS: MACGUI: Fix crash when clicking on the top window
This commit is contained in:
parent
0334d95364
commit
23a9ce1880
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user