Skip to content

Commit

Permalink
Merge pull request #1599 from Karry/fix-junction-node
Browse files Browse the repository at this point in the history
fix GetJunctionNode
  • Loading branch information
Framstag authored Sep 8, 2024
2 parents 993f710 + f639d86 commit b354d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libosmscout/src/osmscout/routing/RoutePostprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ namespace osmscout {
TypeInfoSet junctionTypeSet=it->second;
for (const auto &obj : node.GetObjects()) {
if (obj.IsNode()) {
NodeRef n = GetNode(node.GetDBFileOffset());
NodeRef n = GetNode(DBFileOffset(node.GetDatabaseId(), obj.GetFileOffset()));
if (junctionTypeSet.IsSet(n->GetType())) {
return n;
}
Expand Down

0 comments on commit b354d8d

Please sign in to comment.