[Scummvm-git-logs] scummvm master -> 23a9ce18807d0d89a24b1d579519e837e2982f6f

sev- sev at scummvm.org
Thu Oct 17 09:28:08 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
23a9ce1880 GRAPHICS: MACGUI: Fix crash when clicking on the top window


Commit: 23a9ce18807d0d89a24b1d579519e837e2982f6f
    https://github.com/scummvm/scummvm/commit/23a9ce18807d0d89a24b1d579519e837e2982f6f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-10-17T09:27:38+02:00

Commit Message:
GRAPHICS: MACGUI: Fix crash when clicking on the top window

Changed paths:
    graphics/macgui/macwindowmanager.cpp


diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 338be38..7e7c1b1 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;
 	}
 }





More information about the Scummvm-git-logs mailing list