forked from organicmaps/organicmaps-tmp
[bicycle routing] Fixing asserts while generating turns for long routes.
This commit is contained in:
parent
6d5b599cf0
commit
8d996a1262
1 changed files with 3 additions and 3 deletions
|
@ -36,8 +36,8 @@ public:
|
|||
// turns::IRoutingResult overrides:
|
||||
TUnpackedPathSegments const & GetSegments() const override { return m_pathSegments; }
|
||||
|
||||
void GetPossibleTurns(TNodeId node, m2::PointD const & ingoingPoint,
|
||||
m2::PointD const & junctionPoint, size_t & ingoingCount,
|
||||
void GetPossibleTurns(TNodeId node, m2::PointD const & /* ingoingPoint */,
|
||||
m2::PointD const & /* junctionPoint */, size_t & ingoingCount,
|
||||
TurnCandidates & outgoingTurns) const override
|
||||
{
|
||||
ingoingCount = 0;
|
||||
|
@ -51,7 +51,7 @@ public:
|
|||
}
|
||||
|
||||
ingoingCount = adjacentEdges->second.m_ingoingTurnsCount;
|
||||
outgoingTurns.candidates = adjacentEdges->second.m_outgoingTurns.candidates;
|
||||
outgoingTurns = adjacentEdges->second.m_outgoingTurns;
|
||||
}
|
||||
|
||||
double GetPathLength() const override { return m_routeLength; }
|
||||
|
|
Loading…
Add table
Reference in a new issue