summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-02-10 05:21:08 +0000
committerglx <glx@openttd.org>2008-02-10 05:21:08 +0000
commit7a20968aafd5341cb6d14acb8129bb00781cbcb0 (patch)
treed270b4b8246b69fe77511535f5d2d8971c50c952
parent5bfcd657c317f0f4d4d14f092b13c069be622e5e (diff)
downloadopenttd-7a20968aafd5341cb6d14acb8129bb00781cbcb0.tar.xz
(svn r12097) -Fix (r654, r1525): loading old, pre savegame version 2, savegames.
-rw-r--r--src/vehicle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 62f8929d9..31141b42c 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2853,11 +2853,11 @@ static const SaveLoad _common_veh_desc[] = {
SLE_CONDVAR(Vehicle, value, SLE_FILE_I32 | SLE_VAR_I64, 0, 64),
SLE_CONDVAR(Vehicle, value, SLE_INT64, 65, SL_MAX_VERSION),
- SLE_VAR(Vehicle, random_bits, SLE_UINT8),
- SLE_VAR(Vehicle, waiting_triggers, SLE_UINT8),
+ SLE_CONDVAR(Vehicle, random_bits, SLE_UINT8, 2, SL_MAX_VERSION),
+ SLE_CONDVAR(Vehicle, waiting_triggers, SLE_UINT8, 2, SL_MAX_VERSION),
- SLE_REF(Vehicle, next_shared, REF_VEHICLE),
- SLE_REF(Vehicle, prev_shared, REF_VEHICLE),
+ SLE_CONDREF(Vehicle, next_shared, REF_VEHICLE, 2, SL_MAX_VERSION),
+ SLE_CONDREF(Vehicle, prev_shared, REF_VEHICLE, 2, SL_MAX_VERSION),
SLE_CONDVAR(Vehicle, group_id, SLE_UINT16, 60, SL_MAX_VERSION),