summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-06-09 17:42:48 +0000
committerrubidium <rubidium@openttd.org>2014-06-09 17:42:48 +0000
commitad64b99eb091a2265d4d9ae7684c83aaf28d48ff (patch)
treeb794b1254efdcbc01ec5f8aac1c27659fcff8c7a
parent432e16be50507b297018b65f977d93a36bcd248a (diff)
downloadopenttd-ad64b99eb091a2265d4d9ae7684c83aaf28d48ff.tar.xz
(svn r26636) -Fix [FS#6026-ish]: (memory) size of variables saved for disaster vehicles was not correct in saveload description
-rw-r--r--src/saveload/vehicle_sl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 059015be2..453210baa 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -839,8 +839,10 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
SLE_CONDVAR(Vehicle, age, SLE_INT32, 31, SL_MAX_VERSION),
SLE_VAR(Vehicle, tick_counter, SLE_UINT8),
- SLE_VAR(DisasterVehicle, image_override, SLE_UINT16),
- SLE_VAR(DisasterVehicle, big_ufo_destroyer_target, SLE_UINT16),
+ SLE_CONDVAR(DisasterVehicle, image_override, SLE_FILE_U16 | SLE_VAR_U32, 0, 190),
+ SLE_CONDVAR(DisasterVehicle, image_override, SLE_UINT32, 191, SL_MAX_VERSION),
+ SLE_CONDVAR(DisasterVehicle, big_ufo_destroyer_target, SLE_FILE_U16 | SLE_VAR_U32, 0, 190),
+ SLE_CONDVAR(DisasterVehicle, big_ufo_destroyer_target, SLE_UINT32, 191, SL_MAX_VERSION),
SLE_CONDNULL(16, 2, 143), // old reserved space