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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-09-19 18:27:03 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-09-26 15:05:10 +0300
commite483c8dcc82d5664d20319b346503645d75faa45 (patch)
tree74e52fabaa7d5f725f6ba9d5edcbf04435822639 /routing
parent48378b149c011ea47398e10b9a4b87d502a3b875 (diff)
UTurn crash fix.
Diffstat (limited to 'routing')
-rw-r--r--routing/turns_generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/routing/turns_generator.cpp b/routing/turns_generator.cpp
index ad5bcda522..6830960367 100644
--- a/routing/turns_generator.cpp
+++ b/routing/turns_generator.cpp
@@ -668,6 +668,8 @@ size_t CheckUTurnOnRoute(TUnpackedPathSegments const & segments,
auto const & masterSegment = segments[currentSegment - 1];
if (masterSegment.m_path.size() < 2)
return 0;
+ if (segments[currentSegment].m_path.empty())
+ return 0;
// Roundabout is not the UTurn.
if (masterSegment.m_onRoundabout)
return 0;