aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorDesour <vorunbekannt75@web.de>2020-08-23 19:44:25 +0200
committerceleron55 <celeron55@gmail.com>2020-08-24 19:55:25 +0300
commitf27cf4777933f06f85fa2f013d56ca0a2cf1d588 (patch)
tree0de39c63d30849cbf4e7409f00470493a2de5b15 /src/client
parent3e5bce2251deb8e5fcbaa266431f8c0f10078bf2 (diff)
downloadminetest-f27cf4777933f06f85fa2f013d56ca0a2cf1d588.tar.gz
minetest-f27cf4777933f06f85fa2f013d56ca0a2cf1d588.tar.bz2
minetest-f27cf4777933f06f85fa2f013d56ca0a2cf1d588.zip
Properly handle mod-errors in on_shutdown
Diffstat (limited to 'src/client')
-rw-r--r--src/client/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 0d3a0ca15..920383aaf 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1300,7 +1300,8 @@ bool Game::createSingleplayerServer(const std::string &map_dir,
return false;
}
- server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr, false);
+ server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr,
+ false, nullptr, error_message);
server->start();
return true;