aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-12-25 00:46:34 +0000
committerMax Horn2002-12-25 00:46:34 +0000
commit70769ee04b3667287d8c5b754b3198c652c286a5 (patch)
treeb6369db06f263a192a78e795e7c2886d5c08e786
parent563f99b1fee90caabb5b52ab5cc1ef47c614cb94 (diff)
downloadscummvm-rg350-70769ee04b3667287d8c5b754b3198c652c286a5.tar.gz
scummvm-rg350-70769ee04b3667287d8c5b754b3198c652c286a5.tar.bz2
scummvm-rg350-70769ee04b3667287d8c5b754b3198c652c286a5.zip
fixed invalid memory access
svn-id: r6110
-rw-r--r--gui/newgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index ec7fb3802d..f280b308c7 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();