Skip to content

Commit

Permalink
Initialise 'seabed_height' to avoid compilation warning (#8715)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Jul 26, 2019
1 parent 0cde6fc commit ce87ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapgen/mapgen_fractal.cpp
Expand Up @@ -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];

Expand Down

0 comments on commit ce87ef3

Please sign in to comment.