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

master
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
1 changed files with 1 additions and 1 deletions

View File

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