Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-08-09 11:07:15 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-08-09 14:30:40 +0300
commit66c026fe98bfc1ed25a2ec3162ab41829eaa5697 (patch)
tree71cb8a111837cda7fd637c62456ef9819e9f6744 /routing/index_router.cpp
parentbb6e9f53c23d89fafd9abe4b3596631efbb4b061 (diff)
[routing] Fix segfault
Diffstat (limited to 'routing/index_router.cpp')
-rw-r--r--routing/index_router.cpp3
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());