From 0d2277211c71279375c04ae9b6bad2225385b4bc Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 28 Apr 2019 11:09:05 +0100 Subject: [PATCH] Fix enum type mismatch in TestOrderCondition --- src/tracerestrict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracerestrict.cpp b/src/tracerestrict.cpp index d522503f51..86512e6141 100644 --- a/src/tracerestrict.cpp +++ b/src/tracerestrict.cpp @@ -198,7 +198,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;