Skip to content
Snippets Groups Projects
Commit a8403e4c authored by Romain BERNARD's avatar Romain BERNARD
Browse files

fix getOrigin/DestinationDepot wrong index

parent b45875d7
No related branches found
No related tags found
Loading
......@@ -105,8 +105,8 @@ public:
SAEVKeyPoint& getOrigin(const size_t requestId) { return _route.at(requestId * 2);}
SAEVKeyPoint& getDestination(const size_t requestId) { return _route.at(requestId * 2 + 1);}
SAEVKeyPoint& getOriginDepot(const size_t vehicleId) { return _route.at(_nbRequest + vehicleId*2);}
SAEVKeyPoint& getDestinationDepot(const size_t vehicleId) { return _route.at(_nbRequest + vehicleId*2 + 1);}
SAEVKeyPoint& getOriginDepot(const size_t vehicleId) { return _route.at(_nbRequest*2 + vehicleId*2);}
SAEVKeyPoint& getDestinationDepot(const size_t vehicleId) { return _route.at(_nbRequest*2 + vehicleId*2 + 1);}
[[nodiscard]] size_t getRequestOriginIdx(const size_t requestId) const { return requestId * 2;}
[[nodiscard]] size_t getRequestDestinationIdx(const size_t requestId) const { return requestId * 2 + 1;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment