1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Server: properly delete ServerMap on interrupted startups

A static mod error (e.g. typo) would abort the initialization but never free ServerMap
This commit is contained in:
SmallJoker 2021-02-05 18:34:25 +01:00
parent 9b64834c6a
commit d287da184c
3 changed files with 9 additions and 1 deletions

View file

@ -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;
}