From: Paramat Date: Fri, 26 Jul 2019 16:51:53 +0000 (+0100) Subject: Initialise 'seabed_height' to avoid compilation warning (#8715) X-Git-Tag: 5.1.0~165 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce87ef397f3d93116ca6fe069f34929491eb676b;p=oweals%2Fminetest.git Initialise 'seabed_height' to avoid compilation warning (#8715) --- 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];