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_v5.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mapgen_v5.cpp') diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 48f524e6e..561b8a410 100644 --- a/src/mapgen_v5.cpp +++ b/src/mapgen_v5.cpp @@ -60,8 +60,6 @@ MapgenV5::MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge) this->biomemap = new u8[csize.X * csize.Z]; this->heightmap = new s16[csize.X * csize.Z]; - initHeightMap(this->heightmap, csize.X * csize.Z); - MapgenV5Params *sp = (MapgenV5Params *)params->sparams; this->spflags = sp->spflags; -- cgit v1.2.3