(svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero
authortruelight
Tue, 01 Feb 2005 18:46:49 +0000
changeset 1261 d7c7447dd22d
parent 1260 c60e76928e5c
child 1262 b232a05f37e4
(svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero
town_cmd.c
--- a/town_cmd.c	Tue Feb 01 18:32:01 2005 +0000
+++ b/town_cmd.c	Tue Feb 01 18:46:49 2005 +0000
@@ -31,7 +31,7 @@
 	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 @@
 {
 	int index;
 
+	_total_towns = 0;
+
 	while ((index = SlIterateArray()) != -1) {
 		Town *t;