Fix 3947453: GetNextDecisionNode ignored go to nearest depot when combined with stop at depot

This commit is contained in:
SamuXarick 2024-02-19 18:34:55 +00:00 committed by Patric Stout
parent ab52f7eecf
commit 0c432bdc4d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}