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
commitefe831934acf8ea9e8838638ede475ef62804295 (patch)
treed270b4b8246b69fe77511535f5d2d8971c50c952
parentd9af979d6a5cfd59d2a06a0adbdbe699214d8fd1 (diff)
downloadopenttd-efe831934acf8ea9e8838638ede475ef62804295.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),