diff options
author | smatz <smatz@openttd.org> | 2009-08-07 22:23:34 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-07 22:23:34 +0000 |
commit | 74d3382b946d71445fbce5699d1541946e928450 (patch) | |
tree | 03fe2b58ca63a3e1629c08eefbdf061154cc977c /src/saveload/subsidy_sl.cpp | |
parent | 39e145e586385861b4e3ded70f7df0a29b56fa00 (diff) | |
download | openttd-74d3382b946d71445fbce5699d1541946e928450.tar.xz |
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
Diffstat (limited to 'src/saveload/subsidy_sl.cpp')
-rw-r--r-- | src/saveload/subsidy_sl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saveload/subsidy_sl.cpp b/src/saveload/subsidy_sl.cpp index f7b6a8f12..b1e889e8f 100644 --- a/src/saveload/subsidy_sl.cpp +++ b/src/saveload/subsidy_sl.cpp @@ -10,10 +10,10 @@ static const SaveLoad _subsidies_desc[] = { SLE_VAR(Subsidy, cargo_type, SLE_UINT8), SLE_VAR(Subsidy, age, SLE_UINT8), - SLE_CONDVAR(Subsidy, from, SLE_FILE_U8 | SLE_VAR_U16, 0, 4), - SLE_CONDVAR(Subsidy, from, SLE_UINT16, 5, SL_MAX_VERSION), - SLE_CONDVAR(Subsidy, to, SLE_FILE_U8 | SLE_VAR_U16, 0, 4), - SLE_CONDVAR(Subsidy, to, SLE_UINT16, 5, SL_MAX_VERSION), + SLE_CONDVAR(Subsidy, src, SLE_FILE_U8 | SLE_VAR_U16, 0, 4), + SLE_CONDVAR(Subsidy, src, SLE_UINT16, 5, SL_MAX_VERSION), + SLE_CONDVAR(Subsidy, dst, SLE_FILE_U8 | SLE_VAR_U16, 0, 4), + SLE_CONDVAR(Subsidy, dst, SLE_UINT16, 5, SL_MAX_VERSION), SLE_END() }; |