diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-07-26 17:51:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 17:51:53 +0100 |
commit | ce87ef397f3d93116ca6fe069f34929491eb676b (patch) | |
tree | e3996eb661b0e6c955af6897c6e666dee50bdee1 /src/mapgen/mapgen_fractal.cpp | |
parent | 0cde6fc5525e361a2fd197df2e64895019bbb8ec (diff) | |
download | minetest-ce87ef397f3d93116ca6fe069f34929491eb676b.tar.gz minetest-ce87ef397f3d93116ca6fe069f34929491eb676b.tar.bz2 minetest-ce87ef397f3d93116ca6fe069f34929491eb676b.zip |
Initialise 'seabed_height' to avoid compilation warning (#8715)
Diffstat (limited to 'src/mapgen/mapgen_fractal.cpp')
-rw-r--r-- | src/mapgen/mapgen_fractal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen/mapgen_fractal.cpp b/src/mapgen/mapgen_fractal.cpp index 933958587..091dbacfa 100644 --- a/src/mapgen/mapgen_fractal.cpp +++ b/src/mapgen/mapgen_fractal.cpp @@ -413,7 +413,7 @@ s16 MapgenFractal::generateTerrain() if (vm->m_data[vi].getContent() != CONTENT_IGNORE) continue; - s16 seabed_height; + s16 seabed_height = -MAX_MAP_GENERATION_LIMIT; if (noise_seabed) seabed_height = noise_seabed->result[index2d]; |