diff options
author | frosch <frosch@openttd.org> | 2011-07-02 21:20:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-07-02 21:20:37 +0000 |
commit | 9c015d369e01f027ccefea080b6ea7004e20afae (patch) | |
tree | e0488017fda3017a538cd30372ec07fbbefeb9ce /src/saveload | |
parent | 63d3d8505edeca3c4de1e0d8176319ae9fd3cb51 (diff) | |
download | openttd-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.cpp | 2 |
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; } |