diff --git a/src/ShortestPath/Transit/TransitShortestPath.h b/src/ShortestPath/Transit/TransitShortestPath.h index 9aee17ce81a54dbedeeb026764ffef5e5b076eb4..c2014d13c908b8defe30222a45c3fcd9d905519d 100644 --- a/src/ShortestPath/Transit/TransitShortestPath.h +++ b/src/ShortestPath/Transit/TransitShortestPath.h @@ -16,7 +16,7 @@ public: explicit TransitShortestPath(const TransitAlgorithmState& state) { _arrivalTime = state.getInstant(); - std::move(state.getConnections().begin(), state.getConnections().end(),_keyPoints.begin()); + std::move(state.getConnections().begin(), state.getConnections().end() - 1,_keyPoints.begin()); } /**