(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor
authorglx
Sat, 04 Aug 2007 23:35:27 +0000
changeset 7410 14dc251e7ddb
parent 7409 44932e96a196
child 7411 6aa1fd67a914
(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor
src/town_cmd.cpp
--- a/src/town_cmd.cpp	Sat Aug 04 13:51:41 2007 +0000
+++ b/src/town_cmd.cpp	Sat Aug 04 23:35:27 2007 +0000
@@ -47,6 +47,7 @@
 
 Town::Town(TileIndex tile)
 {
+	if (tile != 0) _total_towns++;
 	this->xy = tile;
 }
 
@@ -1354,8 +1355,6 @@
 	extern int _nb_orig_names;
 	int x, i;
 
-	_total_towns++;
-
 	t->xy = tile;
 	t->num_houses = 0;
 	t->time_until_rebuild = 10;