From 07449be876cf281a43c6bf2aeacc8db0193d3c68 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Tue, 9 May 2023 22:27:35 +0200 Subject: [PATCH] Codechange: A vehicle that is not a front engine can't be removed from a vehicle group, so just remove a pointless function call. --- src/train_cmd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 2880c60999..9a906de7ec 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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; } -- 2.11.4.GIT