diff --git a/routing/joint_segment.cpp b/routing/joint_segment.cpp index 66658a5724..1d5f79960d 100644 --- a/routing/joint_segment.cpp +++ b/routing/joint_segment.cpp @@ -1,5 +1,7 @@ #include "routing/joint_segment.hpp" +#include "routing/fake_feature_ids.hpp" + #include "base/assert.hpp" #include @@ -8,7 +10,7 @@ namespace routing { bool IsRealSegment(Segment const & segment) { - return segment.GetSegmentIdx() != std::numeric_limits::max(); + return segment.GetFeatureId() != FakeFeatureIds::kIndexGraphStarterId; } JointSegment::JointSegment(Segment const & from, Segment const & to)