Skip to content

Commit

Permalink
fix turn restrictions
Browse files Browse the repository at this point in the history
Exclude::targetIndex is index to route node path, not object
  • Loading branch information
Karry committed Mar 29, 2023
1 parent b8df6a4 commit 005f9e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ namespace osmscout {

for (const auto& exclude : currentRouteNode->excludes) {
if (exclude.source==current->object &&
currentRouteNode->objects[exclude.targetIndex].object==currentRouteNode->objects[path.objectIndex].object) {
currentRouteNode->objects[currentRouteNode->paths[exclude.targetIndex].objectIndex].object==currentRouteNode->objects[path.objectIndex].object) {
if constexpr (debugRouting) {
std::cout << " Skipping route";
std::cout << " to " << dbId << " / " << path.id;
Expand Down

0 comments on commit 005f9e5

Please sign in to comment.