[routing] fix copy of shared_ptr

This commit is contained in:
Mikhail Gorbushin 2019-08-05 12:43:52 +03:00 committed by Vladimir Byko-Ianko
parent d712caa10a
commit 32ddd5efb9

View file

@ -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());