mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Initialise 'seabed_height' to avoid compilation warning (#8715)
This commit is contained in:
parent
0cde6fc552
commit
ce87ef397f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue