[Scummvm-cvs-logs] SF.net SVN: scummvm:[34805] scummvm/trunk/gui/newgui.cpp

tanoku at users.sourceforge.net tanoku at users.sourceforge.net
Wed Oct 15 01:42:54 CEST 2008


Revision: 34805
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34805&view=rev
Author:   tanoku
Date:     2008-10-14 23:42:54 +0000 (Tue, 14 Oct 2008)

Log Message:
-----------
Fixed: Freddi 1/2 ingame menu crash (BUG 2167027).

Was: Crash when refreshing the screen with no open dialogs.

Modified Paths:
--------------
    scummvm/trunk/gui/newgui.cpp

Modified: scummvm/trunk/gui/newgui.cpp
===================================================================
--- scummvm/trunk/gui/newgui.cpp	2008-10-14 19:39:33 UTC (rev 34804)
+++ scummvm/trunk/gui/newgui.cpp	2008-10-14 23:42:54 UTC (rev 34805)
@@ -142,6 +142,9 @@
 
 	if (_redrawStatus == kRedrawDisabled)
 		return;
+		
+	if (_dialogStack.empty())
+		return;
 
 	switch (_redrawStatus) {
 		case kRedrawCloseDialog:
@@ -331,7 +334,7 @@
 	_stateIsSaved = false;
 }
 
-void NewGui::openDialog(Dialog *dialog) {
+void NewGui::openDialog(Dialog *dialog) {	
 	_dialogStack.push(dialog);
 	_redrawStatus = kRedrawOpenDialog;
 	


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list