Skip to content

Commit

Permalink
fix off-by-one error with maxTransfers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrieser committed May 21, 2024
1 parent f8f5f9f commit 78ae10d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public Map<Id<TransitStopFacility>, TravelInfo> calcLeastCostTree(double depTime
initialStopIndices = null;
}

if (transfers >= maxTransfers) {
if (transfers > maxTransfers) {
break;
}

Expand Down

0 comments on commit 78ae10d

Please sign in to comment.