diff options
author | SmallJoker <mk939@ymail.com> | 2021-02-05 18:34:25 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2021-02-05 18:38:34 +0100 |
commit | d287da184cff737a661a78a2d485b6915316b28b (patch) | |
tree | aaa62f60f949fe023e8f8f831fe6620e3dc2ed2c /src/map_settings_manager.cpp | |
parent | 9b64834c6a2ae6eb254e486c87864e6116cfafa1 (diff) | |
download | minetest-d287da184cff737a661a78a2d485b6915316b28b.tar.gz minetest-d287da184cff737a661a78a2d485b6915316b28b.tar.bz2 minetest-d287da184cff737a661a78a2d485b6915316b28b.zip |
Server: properly delete ServerMap on interrupted startups
A static mod error (e.g. typo) would abort the initialization but never free ServerMap
Diffstat (limited to 'src/map_settings_manager.cpp')
-rw-r--r-- | src/map_settings_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map_settings_manager.cpp b/src/map_settings_manager.cpp index ed65eed1c..99e3cb0e6 100644 --- a/src/map_settings_manager.cpp +++ b/src/map_settings_manager.cpp @@ -116,7 +116,8 @@ bool MapSettingsManager::saveMapMeta() { // If mapgen params haven't been created yet; abort if (!mapgen_params) { - errorstream << "saveMapMeta: mapgen_params not present!" << std::endl; + infostream << "saveMapMeta: mapgen_params not present! " + << "Server startup was probably interrupted." << std::endl; return false; } |