diff --git a/routing/base/astar_vertex_data.hpp b/routing/base/astar_vertex_data.hpp index 7b0d009ca0..61c9910011 100644 --- a/routing/base/astar_vertex_data.hpp +++ b/routing/base/astar_vertex_data.hpp @@ -5,7 +5,8 @@ namespace routing::astar template struct VertexData { - VertexData() = default; + static VertexData Zero() { return VertexData(Vertex(), Weight()); } + VertexData(Vertex const & vertex, Weight const & realDistance) : m_vertex(vertex), m_realDistance(realDistance) { diff --git a/routing/index_graph.cpp b/routing/index_graph.cpp index b77d9a3f13..aed6ef6a81 100644 --- a/routing/index_graph.cpp +++ b/routing/index_graph.cpp @@ -187,7 +187,7 @@ optional IndexGraph::GetJointEdgeByLastPoint(Segment const & parent, vector edges; vector parentWeights; Parents emptyParents; - ReconstructJointSegment({} /* parentVertexData */, parent, possibleChildren, lastPoints, + ReconstructJointSegment(astar::VertexData::Zero(), parent, possibleChildren, lastPoints, isOutgoing, edges, parentWeights, emptyParents); CHECK_LESS_OR_EQUAL(edges.size(), 1, ());