summaryrefslogtreecommitdiff
path: root/src/mapgen
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-07-26 17:51:53 +0100
committerGitHub <noreply@github.com>2019-07-26 17:51:53 +0100
commitce87ef397f3d93116ca6fe069f34929491eb676b (patch)
treee3996eb661b0e6c955af6897c6e666dee50bdee1 /src/mapgen
parent0cde6fc5525e361a2fd197df2e64895019bbb8ec (diff)
downloadminetest-ce87ef397f3d93116ca6fe069f34929491eb676b.tar.gz
minetest-ce87ef397f3d93116ca6fe069f34929491eb676b.tar.bz2
minetest-ce87ef397f3d93116ca6fe069f34929491eb676b.zip
Initialise 'seabed_height' to avoid compilation warning (#8715)
Diffstat (limited to 'src/mapgen')
-rw-r--r--src/mapgen/mapgen_fractal.cpp2
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];