forked from organicmaps/organicmaps
[routing] fix copy of shared_ptr
This commit is contained in:
parent
d712caa10a
commit
32ddd5efb9
1 changed files with 1 additions and 1 deletions
|
@ -889,7 +889,7 @@ void IndexRouter::RoadsToNearestEdges(m2::PointD const & point,
|
|||
|
||||
Segment IndexRouter::GetSegmentByEdge(Edge const & edge) const
|
||||
{
|
||||
auto const info = edge.GetFeatureId().m_mwmId.GetInfo();
|
||||
auto const & info = edge.GetFeatureId().m_mwmId.GetInfo();
|
||||
CHECK(info, ());
|
||||
auto const numMwmId = m_numMwmIds->GetId(info->GetLocalFile().GetCountryFile());
|
||||
return Segment(numMwmId, edge.GetFeatureId().m_index, edge.GetSegId(), edge.IsForward());
|
||||
|
|
Loading…
Add table
Reference in a new issue