(svn r1318) -Fix: Saving a game fucked up the industries.. sorry ;)
authortruelight
Sat, 01 Jan 2005 15:40:44 +0000
changeset 838 226e5cf10d66
parent 837 096b3cbbdcf9
child 839 62e15965a3d8
(svn r1318) -Fix: Saving a game fucked up the industries.. sorry ;)
industry_cmd.c
--- 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++;
 	}
 }