industry_cmd.c
changeset 4326 c2ae4dbc1074
parent 4313 bbd84f6e21b0
child 4328 23dd79414386
--- a/industry_cmd.c	Sun Aug 20 17:22:03 2006 +0000
+++ b/industry_cmd.c	Sun Aug 20 18:40:57 2006 +0000
@@ -1929,7 +1929,8 @@
 	SLE_VAR(Industry,type,						SLE_UINT8),
 	SLE_VAR(Industry,owner,						SLE_UINT8),
 	SLE_VAR(Industry,color_map,				SLE_UINT8),
-	SLE_VAR(Industry,last_prod_year,	SLE_UINT8),
+	SLE_CONDVAR(Industry, last_prod_year,	SLE_FILE_U8 | SLE_VAR_I32, 0, 30),
+	SLE_CONDVAR(Industry, last_prod_year,	SLE_INT32, 31, SL_MAX_VERSION),
 	SLE_VAR(Industry,was_cargo_delivered,SLE_UINT8),
 
 	// reserve extra space in savegame here. (currently 32 bytes)