mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
mapgen: drop mapgen id from child mapgens.
This id must be owned by the child mapgen and never be set to a misc value by a developer Also use nullptr in some places
This commit is contained in:
@@ -174,8 +174,8 @@ MapgenParams *MapSettingsManager::makeMapgenParams()
|
||||
|
||||
// Create our MapgenParams
|
||||
MapgenParams *params = Mapgen::createMapgenParams(mgtype);
|
||||
if (params == NULL)
|
||||
return NULL;
|
||||
if (!params)
|
||||
return nullptr;
|
||||
|
||||
params->mgtype = mgtype;
|
||||
|
||||
|
Reference in New Issue
Block a user