diff options
author | rubidium <rubidium@openttd.org> | 2009-07-24 19:09:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-24 19:09:48 +0000 |
commit | 7a24fba918f924df87f4fbc9bb304068d6b71faa (patch) | |
tree | 903451da8b1b290ab6065b198eb605d2c357bc6e /src/saveload/industry_sl.cpp | |
parent | d11ec2d1afb4bf542b1caf196379d83934d97d39 (diff) | |
download | openttd-7a24fba918f924df87f4fbc9bb304068d6b71faa.tar.xz |
(svn r16944) -Codechange: remove needlessly complex way of getting the offset of items within a struct that are within a struct
Diffstat (limited to 'src/saveload/industry_sl.cpp')
-rw-r--r-- | src/saveload/industry_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/industry_sl.cpp b/src/saveload/industry_sl.cpp index 25a3ca4ab..7dbbf0925 100644 --- a/src/saveload/industry_sl.cpp +++ b/src/saveload/industry_sl.cpp @@ -46,7 +46,7 @@ static const SaveLoad _industry_desc[] = { SLE_CONDVAR(Industry, last_cargo_accepted_at, SLE_INT32, 70, SL_MAX_VERSION), SLE_CONDVAR(Industry, selected_layout, SLE_UINT8, 73, SL_MAX_VERSION), - SLE_CONDARRX(cpp_offsetof(Industry, psa) + cpp_offsetof(Industry::PersistentStorage, storage), SLE_UINT32, 16, 76, SL_MAX_VERSION), + SLE_CONDARR(Industry, psa.storage, SLE_UINT32, 16, 76, SL_MAX_VERSION), SLE_CONDVAR(Industry, random_triggers, SLE_UINT8, 82, SL_MAX_VERSION), SLE_CONDVAR(Industry, random, SLE_UINT16, 82, SL_MAX_VERSION), |