From 84ea74d8b2efc9e3e9eb70f5c7c141435aee48d9 Mon Sep 17 00:00:00 2001 From: James Ross Date: Thu, 21 Dec 2023 17:18:28 +0000 Subject: [PATCH] Cleanup: Reset separation when skipping orders --- src/order_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 0621ec41df..3c5ae2376c 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1096,6 +1096,7 @@ CommandCost CmdSkipToOrder(DoCommandFlag flags, VehicleID veh_id, VehicleOrderID v->cur_implicit_order_index = v->cur_real_order_index = sel_ord; v->UpdateRealOrderIndex(); + v->ResetAutomaticSeparation(); InvalidateVehicleOrder(v, VIWD_MODIFY_ORDERS);