aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 25424fa26..7ada1791e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1818,7 +1818,7 @@ void Game::run()
while (device->run()
&& !(*kill || g_gamecallback->shutdown_requested
- || server->getShutdownRequested())) {
+ || (server && server->getShutdownRequested()))) {
/* Must be called immediately after a device->run() call because it
* uses device->getTimer()->getTime()