# HG changeset patch # User Michael Lutz # Date 2023-05-09 20:27:35 # Node ID 66a19ec65f575b3b1f19f89832466a76c2a4a525 # Parent 97eaae2636e8cc13cf7f6a9743167cc49ddaeaa7 Codechange: A vehicle that is not a front engine can't be removed from a vehicle group, so just remove a pointless function call. diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1325,7 +1325,6 @@ CommandCost CmdMoveRailVehicle(DoCommand /* 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; }