From 311b1738a463d8f1ad363258be31bb989afb3e95 Mon Sep 17 00:00:00 2001 From: Alain BKR Date: Sun, 9 Apr 2023 22:42:36 +0200 Subject: [PATCH] tiny fix: check if lake exist before regenerate --- server/generator/mapgen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/generator/mapgen.c b/server/generator/mapgen.c index 65c7b2335..18ec2981d 100644 --- a/server/generator/mapgen.c +++ b/server/generator/mapgen.c @@ -1352,7 +1352,10 @@ bool map_fractal_generate(bool autosize, struct unit_type *initial_unit) assign_continent_numbers(); /* Turn small oceans into lakes. */ - regenerate_lakes(); + if (game.map.num_oceans > 0) { + regenerate_lakes(); + } + } else { assign_continent_numbers(); } -- 2.34.1