summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-28 00:29:14 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-29 00:18:56 +0300
commite71b8c2bd9722aae29ed36b78806867964a3121d (patch)
treea33809860b6b2be44905e17075f15a48fbd20c04 /src/actionmanager.cpp
parent9a93f235386bcb47887a33527478700df77dce94 (diff)
downloadmv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.gz
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.bz2
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.tar.xz
mv-e71b8c2bd9722aae29ed36b78806867964a3121d.zip
add support for process all input events before entering game.
add flag for in game action conditions.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index b0018f670..54bf179ae 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -319,6 +319,8 @@ impHandler0(scrollChatDown)
impHandler0(quit)
{
+ if (!Game::instance())
+ return false;
if (viewport && viewport->isPopupMenuVisible())
{
viewport->closePopupMenu();