Fix client crashing when connecting to server

My commit

e2d54c9f92 "shutdown when requested from lua in singleplayer too"

broke minetest's feature to connect to servers. The client crashed
after the connection init was complete.

Thanks to @sofar for reporting the bug.

Fixes #3498.
master
est31 2015-12-30 00:50:50 +01:00
parent 9719aded54
commit a142e4f4b2
1 changed files with 1 additions and 1 deletions

View File

@ -1818,7 +1818,7 @@ void Game::run()
while (device->run() while (device->run()
&& !(*kill || g_gamecallback->shutdown_requested && !(*kill || g_gamecallback->shutdown_requested
|| server->getShutdownRequested())) { || (server && server->getShutdownRequested()))) {
/* Must be called immediately after a device->run() call because it /* Must be called immediately after a device->run() call because it
* uses device->getTimer()->getTime() * uses device->getTimer()->getTime()