From 9a01461c12fb1a44b8f8468931e7d9fb7be1e223 Mon Sep 17 00:00:00 2001 From: Alain BKR Date: Sun, 9 Apr 2023 19:56:04 +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 386f1a2d5..66498fa05 100644 --- a/server/generator/mapgen.c +++ b/server/generator/mapgen.c @@ -1365,7 +1365,10 @@ bool map_fractal_generate(bool autosize, struct unit_type *initial_unit) assign_continent_numbers(); /* Turn small oceans into lakes. */ - regenerate_lakes(); + if (wld.map.num_oceans > 0) { + regenerate_lakes(); + } + } else { assign_continent_numbers(); } -- 2.34.1