summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-23 06:51:26 +0000
committertron <tron@openttd.org>2005-07-23 06:51:26 +0000
commitaf1d71985678a907dcb2c76e4873ec317cefecfc (patch)
treeaac7b00005c0b495b213226fb3ea16bc97f0ff14
parentdd7321a014662a61ef75810302a06db867e91589 (diff)
downloadopenttd-af1d71985678a907dcb2c76e4873ec317cefecfc.tar.xz
(svn r2684) Correctly save and load company_value, it's 64 bits wide, not 32 bits
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 92b5b39c3..c2414ee60 100644
--- a/players.c
+++ b/players.c
@@ -1030,10 +1030,10 @@ static const SaveLoad _player_economy_desc[] = {
// 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),