diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 62c9e55040..ce09ce93b9 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -392,7 +392,7 @@ const Order *OrderList::GetNextDecisionNode(const Order *next, uint hops) const } if (next->IsType(OT_GOTO_DEPOT)) { - if (next->GetDepotActionType() == ODATFB_HALT) return nullptr; + if ((next->GetDepotActionType() & ODATFB_HALT) != 0) return nullptr; if (next->IsRefit()) return next; }