industry_cmd.c
changeset 5319 65acb2e92975
parent 5298 6d4c150bdd94
child 5461 03285c9589f9
child 5623 ef2a8a524a95
child 5685 b88aca81aa7b
--- a/industry_cmd.c	Mon Dec 11 12:32:23 2006 +0000
+++ b/industry_cmd.c	Mon Dec 11 12:37:57 2006 +0000
@@ -1362,8 +1362,6 @@
 
 		if (IsValidIndustry(i)) continue;
 
-		_total_industries++;
-
 		memset(i, 0, sizeof(*i));
 		i->index = index;
 
@@ -1380,6 +1378,7 @@
 	uint32 r;
 	int j;
 
+	_total_industries++;
 	i->xy = tile;
 	i->width = i->height = 0;
 	i->type = type;