forked from organicmaps/organicmaps
[routing] Little number of mwm without cross_mwm section fix.
This commit is contained in:
parent
dd0d06d5fb
commit
ec0c35c719
1 changed files with 3 additions and 1 deletions
|
@ -145,7 +145,9 @@ void CrossMwmGraph::GetTwins(Segment const & s, bool isOutgoing, vector<Segment>
|
|||
vector<NumMwmId> neighbors;
|
||||
bool allNeighborsHaveCrossMwmSection = false;
|
||||
GetAllLoadedNeighbors(s.GetMwmId(), neighbors, allNeighborsHaveCrossMwmSection);
|
||||
if (allNeighborsHaveCrossMwmSection)
|
||||
MwmStatus const currentMwmStatus = GetMwmStatus(s.GetMwmId());
|
||||
CHECK(currentMwmStatus != MwmStatus::NotLoaded, ("Current mwm is not loaded. Mwm:", m_numMwmIds->GetFile(s.GetMwmId())));
|
||||
if (allNeighborsHaveCrossMwmSection && currentMwmStatus == MwmStatus::CrossMwmSectionExists)
|
||||
{
|
||||
DeserializeTransitions(neighbors);
|
||||
m_crossMwmIndexGraph.GetTwinsByOsmId(s, isOutgoing, neighbors, twins);
|
||||
|
|
Loading…
Add table
Reference in a new issue