diff options
-rw-r--r-- | town_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c index 59a9945b2..dcded352b 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -1063,9 +1063,7 @@ bool GenerateTowns(void) // give it a last try, but now more aggressive if (num == 0 && CreateRandomTown(10000, 0) == NULL) { - const Town* t; - - FOR_ALL_TOWNS(t) return true; + if (GetTownArraySize() > 0) return true; //XXX can we handle that more gracefully? if (num == 0 && _game_mode != GM_EDITOR) { |