aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorChristopher Page2008-07-07 23:24:12 +0000
committerChristopher Page2008-07-07 23:24:12 +0000
commit61d25a912ed1a8ca864e7c4dc564624947f3b2fe (patch)
treeedbbb3197f5f6ac67ee7d43c2246dd77e7cff671 /gui
parenta4f56de13ac2a7daaf5654c75f07ad6331f375e6 (diff)
downloadscummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.tar.gz
scummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.tar.bz2
scummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.zip
Agi works with the new GMM implementation
svn-id: r32953
Diffstat (limited to 'gui')
-rw-r--r--gui/newgui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 618c7bc873..9f1ff51b14 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -25,6 +25,7 @@
#include "common/events.h"
#include "common/system.h"
#include "common/util.h"
+#include "engines/engine.h"
#include "graphics/cursorman.h"
#include "gui/newgui.h"
#include "gui/dialog.h"
@@ -313,7 +314,8 @@ void NewGui::runLoop() {
activeDialog->handleMouseWheel(mouse.x, mouse.y, 1);
break;
case Common::EVENT_QUIT:
- _system->quit();
+ if (!g_engine)
+ _system->quit();
return;
case Common::EVENT_SCREEN_CHANGED:
screenChange();