From de4d958808a17bfe3dd4ffc19b88a3c3dc706775 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 24 Apr 2018 21:30:00 +0100 Subject: [PATCH] Fix tracerestrict current order test on load through advance order --- src/tracerestrict.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tracerestrict.cpp b/src/tracerestrict.cpp index 46efd2f023..0be2859123 100644 --- a/src/tracerestrict.cpp +++ b/src/tracerestrict.cpp @@ -198,7 +198,8 @@ static bool TestOrderCondition(const Order *order, TraceRestrictItem item) DestinationID condvalue = GetTraceRestrictValue(item); switch (static_cast(GetTraceRestrictAuxField(item))) { case TROCAF_STATION: - result = order->IsType(OT_GOTO_STATION) && order->GetDestination() == condvalue; + result = (order->IsType(OT_GOTO_STATION) || order->IsType(OT_LOADING_ADVANCE)) + && order->GetDestination() == condvalue; break; case TROCAF_WAYPOINT: