1
0
Fork 0

Codechange: A vehicle that is not a front engine can't be removed from a vehicle group, so just remove a pointless function call.

pull/10802/head
Michael Lutz 2023-05-09 22:27:35 +02:00
parent 1ae7eb1594
commit 07449be876
1 changed files with 0 additions and 1 deletions

View File

@ -1325,7 +1325,6 @@ CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID
/* Delete orders, group stuff and the unit number as we're not the
* front of any vehicle anymore. */
DeleteVehicleOrders(src);
RemoveVehicleFromGroup(src);
src->unitnumber = 0;
}