industry_cmd.c
changeset 838 edbab611fc63
parent 830 36c1366367e4
child 856 918759cedca8
--- a/industry_cmd.c	Fri Dec 31 19:09:03 2004 +0000
+++ b/industry_cmd.c	Sat Jan 01 15:40:44 2005 +0000
@@ -1890,11 +1890,11 @@
 	int i = 0;
 	// Write the vehicles
 	FOR_ALL_INDUSTRIES(ind) {
-		i++;
 		if (ind->xy != 0) {
 			SlSetArrayIndex(i);
 			SlObject(ind, _industry_desc);
 		}
+		i++;
 	}
 }