Fix tracerestrict current order test on load through advance order

This commit is contained in:
Jonathan G Rennison
2018-04-24 21:30:00 +01:00
parent 97fd250d21
commit de4d958808

View File

@@ -198,7 +198,8 @@ static bool TestOrderCondition(const Order *order, TraceRestrictItem item)
DestinationID condvalue = GetTraceRestrictValue(item);
switch (static_cast<TraceRestrictOrderCondAuxField>(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: