From ce87ef397f3d93116ca6fe069f34929491eb676b Mon Sep 17 00:00:00 2001 From: Paramat Date: Fri, 26 Jul 2019 17:51:53 +0100 Subject: Initialise 'seabed_height' to avoid compilation warning (#8715) --- src/mapgen/mapgen_fractal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapgen') 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]; -- cgit v1.2.3