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:
parent
9b64834c6a
commit
d287da184c
3 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue