1
0
Fork 0

(svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero

release/0.4.5
truelight 2005-02-01 18:46:49 +00:00
parent 777dd99585
commit 0be987391b
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static void TownPoolNewBlock(uint start_item)
Town *t; Town *t;
FOR_ALL_TOWNS_FROM(t, start_item) FOR_ALL_TOWNS_FROM(t, start_item)
t->index = start_item++; t->index = start_item++;
} }
/* Initialize the town-pool */ /* Initialize the town-pool */
@ -1971,6 +1971,8 @@ static void Load_TOWN(void)
{ {
int index; int index;
_total_towns = 0;
while ((index = SlIterateArray()) != -1) { while ((index = SlIterateArray()) != -1) {
Town *t; Town *t;