Mercurial > hg > openttd
changeset 17834:371333fd42a2 draft
(svn r22625) -Fix (r22050)[FS#4642]: Do not zero the orders of disaster vehicles when converting savegames.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 02 Jul 2011 21:20:37 +0000 |
parents | 22216d88b87b |
children | b783f0c424cb |
files | src/saveload/vehicle_sl.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -336,7 +336,7 @@ 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; }