From d7481e9c3eae52f3ddfea17f16c00eac42b64b7e Mon Sep 17 00:00:00 2001
From: Romain BERNARD <30secondstodraw@gmail.com>
Date: Tue, 19 Mar 2024 18:15:31 +0100
Subject: [PATCH] fix oob

---
 src/ShortestPath/Transit/TransitShortestPath.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ShortestPath/Transit/TransitShortestPath.h b/src/ShortestPath/Transit/TransitShortestPath.h
index 9aee17c..c2014d1 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());
     }
 
     /**
-- 
GitLab