From 1d885c462f357b37817b39793c2774354d71f1a5 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 5 Feb 2022 15:06:55 +0000 Subject: [PATCH] Fix incorrect string parameters for dispatch schedule assigned to depot See: #368 --- src/lang/english.txt | 2 +- src/schdispatch_gui.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lang/english.txt b/src/lang/english.txt index a0483967e6..e61a6c4ff3 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -7185,7 +7185,7 @@ STR_SCHDISPATCH_SUMMARY_NOT_ENABLED :{BLACK}This sch STR_SCHDISPATCH_SLOT_OUTSIDE_SCHEDULE :{BLACK}One or more departure slots are outside the schedule duration. STR_SCHDISPATCH_NOT_ASSIGNED_TO_ORDER :{BLACK}This dispatch schedule is not assigned to an order. -STR_SCHDISPATCH_ASSIGNED_TO_ORDER :{BLACK}This dispatch schedule is assigned to order {NUM}: {STRING1}. +STR_SCHDISPATCH_ASSIGNED_TO_ORDER :{BLACK}This dispatch schedule is assigned to order {NUM}: {STRING2}. STR_SCHDISPATCH_ADD_DEPARTURE_SLOTS_START :{BLACK}Start: STR_SCHDISPATCH_ADD_DEPARTURE_SLOTS_STEP :{BLACK}Period: diff --git a/src/schdispatch_gui.cpp b/src/schdispatch_gui.cpp index 844cd919ec..4054c5cf19 100644 --- a/src/schdispatch_gui.cpp +++ b/src/schdispatch_gui.cpp @@ -520,7 +520,8 @@ struct SchdispatchWindow : GeneralVehicleWindow { case OT_GOTO_DEPOT: SetDParam(1, STR_DEPOT_NAME); - SetDParam(2, order->GetDestination()); + SetDParam(2, v->type); + SetDParam(3, order->GetDestination()); break; default: