mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix mapgen using unitialised height map values
This commit is contained in:
@@ -57,6 +57,8 @@ MapgenV6::MapgenV6(int mapgenid, MapgenParams *params, EmergeManager *emerge)
|
||||
|
||||
this->heightmap = new s16[csize.X * csize.Z];
|
||||
|
||||
initHeightMap(this->heightmap, csize.X * csize.Z);
|
||||
|
||||
MapgenV6Params *sp = (MapgenV6Params *)params->sparams;
|
||||
this->spflags = sp->spflags;
|
||||
this->freq_desert = sp->freq_desert;
|
||||
|
Reference in New Issue
Block a user