1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

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

This commit is contained in:
Michael Lutz
2023-05-09 22:27:35 +02:00
parent 1ae7eb1594
commit 07449be876

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;
}