Fix: always try to create at least one town

This commit is contained in:
Rubidium
2025-12-06 11:59:49 +01:00
committed by dP
parent c60378a0eb
commit eae2d6b62c

View File

@@ -2760,7 +2760,7 @@ bool GenerateTowns(TownLayout layout, std::optional<uint> number)
total = Map::ScaleByLandProportion(GetDefaultTownsForMapSize() + (Random() & 7));
}
total = std::min<uint>(TownPool::MAX_SIZE, total);
total = Clamp<uint>(total, 1, TownPool::MAX_SIZE);
uint32_t townnameparts;
TownNames town_names;