From 14e04685045123a81a5dc65761614a481a15b043 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 28 Jun 2024 21:41:07 +0100 Subject: [PATCH] Fix duplicate order duplicating dispatch schedule assignment --- src/order_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 4593ecf969..199104dc8d 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1065,6 +1065,7 @@ CommandCost CmdDuplicateOrder(TileIndex tile, DoCommandFlag flags, uint32_t p1, new_order.SetTravelTimetabled(false); new_order.SetTravelTime(0); new_order.SetTravelFixed(false); + new_order.SetDispatchScheduleIndex(-1); CommandCost cost = CmdInsertOrderIntl(flags, v, sel_ord + 1, new_order, true); if (cost.Failed()) return cost; if (flags & DC_EXEC) {