Skip to content
Permalink
Browse files

Initialise 'seabed_height' to avoid compilation warning (#8715)

  • Loading branch information...
paramat committed Jul 26, 2019
1 parent 0cde6fc commit ce87ef397f3d93116ca6fe069f34929491eb676b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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];

0 comments on commit ce87ef3

Please sign in to comment.
You can’t perform that action at this time.