From 9c015d369e01f027ccefea080b6ea7004e20afae Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 2 Jul 2011 21:20:37 +0000 Subject: (svn r22625) -Fix (r22050)[FS#4642]: Do not zero the orders of disaster vehicles when converting savegames. --- src/saveload/vehicle_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2