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_v7.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mapgen_v7.cpp') diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp index 4b5a10ca1..09e6e54c2 100644 --- a/src/mapgen_v7.cpp +++ b/src/mapgen_v7.cpp @@ -64,8 +64,6 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge) this->heightmap = new s16[csize.X * csize.Z]; this->ridge_heightmap = new s16[csize.X * csize.Z]; - initHeightMap(this->heightmap, csize.X * csize.Z); - MapgenV7Params *sp = (MapgenV7Params *)params->sparams; this->spflags = sp->spflags; -- cgit v1.2.3