mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
This commit is contained in:
committed by
Michael Lutz
parent
3b614d0650
commit
7fcc5de374
@@ -1336,8 +1336,7 @@ CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID
|
||||
}
|
||||
/* Remove stuff not valid anymore for non-front engines. */
|
||||
DeleteVehicleOrders(src);
|
||||
Company::Get(src->owner)->freeunits[src->type].ReleaseID(src->unitnumber);
|
||||
src->unitnumber = 0;
|
||||
src->ReleaseUnitNumber();
|
||||
src->name.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user