mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero
This commit is contained in:
parent
59ac6e8c4b
commit
bb05305a1f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user