Initialise 'seabed_height' to avoid compilation warning (#8715)
parent
0cde6fc552
commit
ce87ef397f
|
@ -413,7 +413,7 @@ s16 MapgenFractal::generateTerrain()
|
||||||
if (vm->m_data[vi].getContent() != CONTENT_IGNORE)
|
if (vm->m_data[vi].getContent() != CONTENT_IGNORE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
s16 seabed_height;
|
s16 seabed_height = -MAX_MAP_GENERATION_LIMIT;
|
||||||
if (noise_seabed)
|
if (noise_seabed)
|
||||||
seabed_height = noise_seabed->result[index2d];
|
seabed_height = noise_seabed->result[index2d];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue