mirror of
https://github.com/openwrt/packages.git
synced 2025-02-14 13:48:04 +00:00
12 lines
399 B
Diff
12 lines
399 B
Diff
--- a/src/utils/router/IntermodalEdge.h
|
|
+++ b/src/utils/router/IntermodalEdge.h
|
|
@@ -232,7 +232,7 @@ public:
|
|
|
|
// only used by AStar
|
|
inline double getMinimumTravelTime(const IntermodalTrip<E, N, V>* const trip) const {
|
|
- return myLength / trip->getMaxSpeed();
|
|
+ return trip ? myLength / trip->getMaxSpeed() : myLength;
|
|
}
|
|
|
|
/// @brief only used by mono-modal routing
|