summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-02 21:20:37 +0000
committerfrosch <frosch@openttd.org>2011-07-02 21:20:37 +0000
commit9c015d369e01f027ccefea080b6ea7004e20afae (patch)
treee0488017fda3017a538cd30372ec07fbbefeb9ce /src/saveload
parent63d3d8505edeca3c4de1e0d8176319ae9fd3cb51 (diff)
downloadopenttd-9c015d369e01f027ccefea080b6ea7004e20afae.tar.xz
(svn r22625) -Fix (r22050)[FS#4642]: Do not zero the orders of disaster vehicles when converting savegames.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 8928df710..b9b2d53ce 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -336,7 +336,7 @@ void AfterLoadVehicles(bool part_of_load)
if (IsSavegameVersionBefore(160)) {
/* In some old savegames there might be some "crap" stored. */
FOR_ALL_VEHICLES(v) {
- if (!v->IsPrimaryVehicle()) {
+ if (!v->IsPrimaryVehicle() && v->type != VEH_DISASTER) {
v->current_order.Free();
v->unitnumber = 0;
}