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

This commit is contained in:
Paramat 2019-07-26 17:51:53 +01:00 committed by GitHub
parent 0cde6fc552
commit ce87ef397f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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];