diff --git a/src/tracerestrict.cpp b/src/tracerestrict.cpp index 572b3db966..0a0bb171cc 100644 --- a/src/tracerestrict.cpp +++ b/src/tracerestrict.cpp @@ -205,7 +205,7 @@ static bool TestOrderCondition(const Order *order, TraceRestrictItem item) result = order->IsType(OT_GOTO_WAYPOINT) && order->GetDestination() == condvalue; break; - case OT_GOTO_DEPOT: + case TROCAF_DEPOT: result = order->IsType(OT_GOTO_DEPOT) && order->GetDestination() == condvalue; break;