Skip to content

Commit ce87ef3

Browse files
authoredJul 26, 2019
Initialise 'seabed_height' to avoid compilation warning (#8715)
1 parent 0cde6fc commit ce87ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/mapgen/mapgen_fractal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ s16 MapgenFractal::generateTerrain()
413413
if (vm->m_data[vi].getContent() != CONTENT_IGNORE)
414414
continue;
415415

416-
s16 seabed_height;
416+
s16 seabed_height = -MAX_MAP_GENERATION_LIMIT;
417417
if (noise_seabed)
418418
seabed_height = noise_seabed->result[index2d];
419419

0 commit comments

Comments
 (0)
Please sign in to comment.