From 2e47c38ea21c6865943e5c276f3de83a200dcd88 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 18 Jul 2019 17:11:26 +0300 Subject: [PATCH] [routing] Review fixes. --- routing/fake_graph.hpp | 1 - routing/index_graph_starter.cpp | 2 +- routing/transit_graph.hpp | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/routing/fake_graph.hpp b/routing/fake_graph.hpp index 8b72720fec..89481b0016 100644 --- a/routing/fake_graph.hpp +++ b/routing/fake_graph.hpp @@ -48,7 +48,6 @@ public: ("Segment", from, "does not exist in fake graph.")); ASSERT(m_segmentToVertex.find(to) != m_segmentToVertex.end(), ("Segment", to, "does not exist in fake graph.")); - m_outgoing[from].insert(to); m_ingoing[to].insert(from); } diff --git a/routing/index_graph_starter.cpp b/routing/index_graph_starter.cpp index ab0a9425fe..abd408f2aa 100644 --- a/routing/index_graph_starter.cpp +++ b/routing/index_graph_starter.cpp @@ -348,7 +348,7 @@ void IndexGraphStarter::AddEnding(FakeEnding const & thisEnding, FakeEnding cons { auto const backwardSegment = GetReverseSegment(projection.m_segment); FakeVertex backwardPartOfReal( - projection.m_segment.GetMwmId(), isStart ? projection.m_junction : frontJunction, + backwardSegment.GetMwmId(), isStart ? projection.m_junction : frontJunction, isStart ? backJunction : projection.m_junction, FakeVertex::Type::PartOfReal); Segment fakeBackwardSegment; if (!m_fake.FindSegment(backwardPartOfReal, fakeBackwardSegment)) diff --git a/routing/transit_graph.hpp b/routing/transit_graph.hpp index e572c6300e..b597810386 100644 --- a/routing/transit_graph.hpp +++ b/routing/transit_graph.hpp @@ -11,6 +11,8 @@ #include "transit/transit_graph_data.hpp" #include "transit/transit_types.hpp" +#include "routing_common/num_mwm_id.hpp" + #include #include #include