diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-03-05 16:25:53 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-03-06 01:42:55 +1000 |
commit | daa1c30b35396653563ca9517cfd9f9934fd8cda (patch) | |
tree | 63fd5a47916260da161e7fe991cf50de85b73d91 /src/mapgen_v6.cpp | |
parent | 3d505b2b5f6cf6a8c3475a40991d7d1f8ef75365 (diff) | |
download | minetest-daa1c30b35396653563ca9517cfd9f9934fd8cda.tar.gz minetest-daa1c30b35396653563ca9517cfd9f9934fd8cda.tar.bz2 minetest-daa1c30b35396653563ca9517cfd9f9934fd8cda.zip |
Fix mapgen using unitialised height map values
Diffstat (limited to 'src/mapgen_v6.cpp')
-rw-r--r-- | src/mapgen_v6.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 58e6022f8..8ea4cd21d 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -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; |