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

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

svn-id: r34805
This commit is contained in:
Vicent Marti 2008-10-14 23:42:54 +00:00
parent 61b04725a1
commit cf81446338

View File

@ -142,6 +142,9 @@ void NewGui::redraw() {
if (_redrawStatus == kRedrawDisabled)
return;
if (_dialogStack.empty())
return;
switch (_redrawStatus) {
case kRedrawCloseDialog:
@ -331,7 +334,7 @@ void NewGui::restoreState() {
_stateIsSaved = false;
}
void NewGui::openDialog(Dialog *dialog) {
void NewGui::openDialog(Dialog *dialog) {
_dialogStack.push(dialog);
_redrawStatus = kRedrawOpenDialog;