diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-08-09 11:07:15 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-08-09 14:30:40 +0300 |
commit | 66c026fe98bfc1ed25a2ec3162ab41829eaa5697 (patch) | |
tree | 71cb8a111837cda7fd637c62456ef9819e9f6744 /routing/index_router.cpp | |
parent | bb6e9f53c23d89fafd9abe4b3596631efbb4b061 (diff) |
[routing] Fix segfault
Diffstat (limited to 'routing/index_router.cpp')
-rw-r--r-- | routing/index_router.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 94e4ff696e..45efdcb10a 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -889,7 +889,8 @@ void IndexRouter::RoadsToNearestEdges(m2::PointD const & point, Segment IndexRouter::GetSegmentByEdge(Edge const & edge) const { - auto const & info = edge.GetFeatureId().m_mwmId.GetInfo(); + auto const & featureId = edge.GetFeatureId(); + auto const & info = featureId.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()); |