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:
@@ -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
|
/* Delete orders, group stuff and the unit number as we're not the
|
||||||
* front of any vehicle anymore. */
|
* front of any vehicle anymore. */
|
||||||
DeleteVehicleOrders(src);
|
DeleteVehicleOrders(src);
|
||||||
RemoveVehicleFromGroup(src);
|
|
||||||
src->unitnumber = 0;
|
src->unitnumber = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user