summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-16 17:39:35 +0000
committerrubidium <rubidium@openttd.org>2014-05-16 17:39:35 +0000
commit191fd09d32b4f070da9f229724af4b4d90c9decb (patch)
treeea7dfde731049bab25e0ffdf93be5f48c0b0c994 /src/saveload
parent9270d94e7e116cc613bccd69d3b4bda887c54788 (diff)
downloadopenttd-191fd09d32b4f070da9f229724af4b4d90c9decb.tar.xz
(svn r26590) -Fix: possible desync (big/little endian) due to not writing complete variables upon saveload
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/company_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/company_sl.cpp b/src/saveload/company_sl.cpp
index 03e9cdcb3..6ac22c268 100644
--- a/src/saveload/company_sl.cpp
+++ b/src/saveload/company_sl.cpp
@@ -258,7 +258,7 @@ static const SaveLoad _company_desc[] = {
SLE_VAR(CompanyProperties, colour, SLE_UINT8),
SLE_VAR(CompanyProperties, money_fraction, SLE_UINT8),
- SLE_CONDVAR(CompanyProperties, avail_railtypes, SLE_UINT8, 0, 57),
+ SLE_CONDVAR(CompanyProperties, avail_railtypes, SLE_VAR_I32 | SLE_FILE_I8, 0, 57),
SLE_VAR(CompanyProperties, block_preview, SLE_UINT8),
SLE_CONDNULL(2, 0, 93), ///< cargo_types