[Scummvm-git-logs] scummvm master -> b8e7f45760d935af90588754cce6ab378adffb0c

sev- sev at scummvm.org
Tue Oct 15 19:07:27 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:
b8e7f45760 GRAPHICS: MACGUI: Fix window deletion


Commit: b8e7f45760d935af90588754cce6ab378adffb0c
    https://github.com/scummvm/scummvm/commit/b8e7f45760d935af90588754cce6ab378adffb0c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-10-15T19:07:18+02:00

Commit Message:
GRAPHICS: MACGUI: Fix window deletion

Changed paths:
    graphics/macgui/macwindowmanager.cpp


diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index cd72d5c..62d3710 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;
 	}
 }
 





More information about the Scummvm-git-logs mailing list