summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-14 17:04:01 +0000
committerrubidium <rubidium@openttd.org>2013-02-14 17:04:01 +0000
commitc77cd1f409698a5c3c0dc89f2cd1930b20b90554 (patch)
treed73eefa6aae84ccaec5d3657a03c692e4f5b2cac /src/saveload
parent328ed1cf94a5a18fad75ae7057202b5c05138765 (diff)
downloadopenttd-c77cd1f409698a5c3c0dc89f2cd1930b20b90554.tar.xz
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/order_sl.cpp2
-rw-r--r--src/saveload/vehicle_sl.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/order_sl.cpp b/src/saveload/order_sl.cpp
index c72d982ad..5b7fa535e 100644
--- a/src/saveload/order_sl.cpp
+++ b/src/saveload/order_sl.cpp
@@ -247,7 +247,7 @@ const SaveLoad *GetOrderBackupDescription()
SLE_VAR(OrderBackup, user, SLE_UINT32),
SLE_VAR(OrderBackup, tile, SLE_UINT32),
SLE_VAR(OrderBackup, group, SLE_UINT16),
- SLE_VAR(OrderBackup, service_interval, SLE_INT32),
+ SLE_VAR(OrderBackup, service_interval, SLE_UINT32),
SLE_STR(OrderBackup, name, SLE_STR, 0),
SLE_VAR(OrderBackup, clone, SLE_UINT16),
SLE_VAR(OrderBackup, cur_real_order_index, SLE_UINT8),
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 416b0f0e9..c1e07bf3c 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -640,8 +640,8 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
SLE_CONDVAR(Vehicle, max_age, SLE_INT32, 31, SL_MAX_VERSION),
SLE_CONDVAR(Vehicle, date_of_last_service, SLE_FILE_U16 | SLE_VAR_I32, 0, 30),
SLE_CONDVAR(Vehicle, date_of_last_service, SLE_INT32, 31, SL_MAX_VERSION),
- SLE_CONDVAR(Vehicle, service_interval, SLE_FILE_U16 | SLE_VAR_I32, 0, 30),
- SLE_CONDVAR(Vehicle, service_interval, SLE_INT32, 31, SL_MAX_VERSION),
+ SLE_CONDVAR(Vehicle, service_interval, SLE_FILE_U16 | SLE_VAR_U32, 0, 30),
+ SLE_CONDVAR(Vehicle, service_interval, SLE_UINT32, 31, SL_MAX_VERSION),
SLE_VAR(Vehicle, reliability, SLE_UINT16),
SLE_VAR(Vehicle, reliability_spd_dec, SLE_UINT16),
SLE_VAR(Vehicle, breakdown_ctr, SLE_UINT8),