From d463000595ee2b8bce94e5b99e764be6e1fd52f6 Mon Sep 17 00:00:00 2001 From: paramat Date: Sat, 7 Mar 2015 03:15:12 +0000 Subject: Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found --- src/mapgen_v6.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mapgen_v6.cpp') diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 89efcb9d3..7f5be27ae 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -57,8 +57,6 @@ 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; -- cgit v1.2.3