From 0be987391b75643fdb27bbe4bccaa2d16a96075d Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 1 Feb 2005 18:46:49 +0000 Subject: [PATCH] (svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero --- town_cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/town_cmd.c b/town_cmd.c index eeb1aff497..af6f66396f 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -31,7 +31,7 @@ static void TownPoolNewBlock(uint start_item) Town *t; FOR_ALL_TOWNS_FROM(t, start_item) - t->index = start_item++; + t->index = start_item++; } /* Initialize the town-pool */ @@ -1971,6 +1971,8 @@ static void Load_TOWN(void) { int index; + _total_towns = 0; + while ((index = SlIterateArray()) != -1) { Town *t;