diff --git a/src/ShortestPath/Transit/TransitAlgorithmState.h b/src/ShortestPath/Transit/TransitAlgorithmState.h index 4247f980cd75847dcf0cf569c8f020ee56a94f1e..0b44eee20e627ac39ed6216da29db82b6e129843 100644 --- a/src/ShortestPath/Transit/TransitAlgorithmState.h +++ b/src/ShortestPath/Transit/TransitAlgorithmState.h @@ -52,14 +52,14 @@ public: explicit TransitAlgorithmState(int nodeIndex) { _nodeIndex = nodeIndex; - _instant = 0; - _passageIndex = 0; + _instant = INT16_MAX; + _passageIndex = -1; } explicit TransitAlgorithmState() { _nodeIndex = -1; - _instant = 0; - _passageIndex = 0; + _instant = INT16_MAX; + _passageIndex = -1; } [[nodiscard]] int getNodeIndex() const { diff --git a/src/ShortestPath/Transit/TransitStateContainer.h b/src/ShortestPath/Transit/TransitStateContainer.h index a3c17760bddaa2d50f6637dbf2b9fc1d3ea1c29f..b962c0b71b6fcbb82abb332d607b58871e9c16ce 100644 --- a/src/ShortestPath/Transit/TransitStateContainer.h +++ b/src/ShortestPath/Transit/TransitStateContainer.h @@ -45,7 +45,7 @@ public: void pushEmptyState(int nodeIndex) { - TransitAlgorithmState newState = TransitAlgorithmState(nodeIndex, INT16_MAX, 0); + TransitAlgorithmState newState = TransitAlgorithmState(nodeIndex); solutionVector.at(nodeIndex).emplace_back(newState); } };