From 70769ee04b3667287d8c5b754b3198c652c286a5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 25 Dec 2002 00:46:34 +0000 Subject: [PATCH] fixed invalid memory access svn-id: r6110 --- gui/newgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/newgui.cpp b/gui/newgui.cpp index ec7fb3802da..f280b308c7e 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -116,7 +116,7 @@ void NewGui::runLoop() didSaveState = true; } - while (activeDialog == _dialogStack.top()) { + while (!_dialogStack.empty() && activeDialog == _dialogStack.top()) { activeDialog->handleTickle();