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_v5.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_v5.cpp')
-rw-r--r-- | src/mapgen_v5.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 9392c35b1..34484c7e5 100644 --- a/src/mapgen_v5.cpp +++ b/src/mapgen_v5.cpp @@ -60,6 +60,8 @@ 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; |