(svn r2684) Correctly save and load company_value, it's 64 bits wide, not 32 bits
authortron
Sat, 23 Jul 2005 06:51:26 +0000
changeset 2170 b8a5a7dc0cd2
parent 2169 f6d2ec3ecd5b
child 2171 008122046f7f
(svn r2684) Correctly save and load company_value, it's 64 bits wide, not 32 bits
players.c
--- a/players.c	Sat Jul 23 06:45:57 2005 +0000
+++ b/players.c	Sat Jul 23 06:51:26 2005 +0000
@@ -1030,10 +1030,10 @@
 	// these were changed to 64-bit in savegame format 2
 	SLE_CONDVAR(PlayerEconomyEntry,income,							SLE_INT32, 0, 1),
 	SLE_CONDVAR(PlayerEconomyEntry,expenses,						SLE_INT32, 0, 1),
-	SLE_CONDVAR(PlayerEconomyEntry,company_value,				SLE_INT32, 0, 1),
+	SLE_CONDVAR(PlayerEconomyEntry,company_value, SLE_FILE_I32 | SLE_VAR_I64, 0, 1),
 	SLE_CONDVAR(PlayerEconomyEntry,income,	SLE_FILE_I64 | SLE_VAR_I32, 2, 255),
 	SLE_CONDVAR(PlayerEconomyEntry,expenses,SLE_FILE_I64 | SLE_VAR_I32, 2, 255),
-	SLE_CONDVAR(PlayerEconomyEntry,company_value,SLE_FILE_I64 | SLE_VAR_I32, 2, 255),
+	SLE_CONDVAR(PlayerEconomyEntry,company_value, SLE_INT64, 2, 255),
 
 	SLE_VAR(PlayerEconomyEntry,delivered_cargo,			SLE_INT32),
 	SLE_VAR(PlayerEconomyEntry,performance_history,	SLE_INT32),