Skip to content

Commit

Permalink
fix #14343
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 15, 2024
1 parent 8f4a2a8 commit 828e4e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/router/PublicTransportEdge.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ class PublicTransportEdge : public IntermodalEdge<E, L, N, V> {
// << " minASec=" << minArrivalSec << " travelTime=" << minArrivalSec - time << "\n";
}
}
return STEPS2TIME(minArrival - step);
if (minArrival != SUMOTime_MAX) {
return STEPS2TIME(minArrival - step);
} else {
// indicate failure
return std::numeric_limits<double>::max();
}
}

double getIntended(const double time, std::string& intended) const {
Expand Down

0 comments on commit 828e4e0

Please sign in to comment.