mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
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:
parent
61b04725a1
commit
cf81446338
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user