summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
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();