mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r22625) -Fix (r22050)[FS#4642]: Do not zero the orders of disaster vehicles when converting savegames.
This commit is contained in:
parent
63d3d8505e
commit
9c015d369e
@ -336,7 +336,7 @@ void AfterLoadVehicles(bool part_of_load)
|
|||||||
if (IsSavegameVersionBefore(160)) {
|
if (IsSavegameVersionBefore(160)) {
|
||||||
/* In some old savegames there might be some "crap" stored. */
|
/* In some old savegames there might be some "crap" stored. */
|
||||||
FOR_ALL_VEHICLES(v) {
|
FOR_ALL_VEHICLES(v) {
|
||||||
if (!v->IsPrimaryVehicle()) {
|
if (!v->IsPrimaryVehicle() && v->type != VEH_DISASTER) {
|
||||||
v->current_order.Free();
|
v->current_order.Free();
|
||||||
v->unitnumber = 0;
|
v->unitnumber = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user