Explicit RTreeValue decl because gcc didnt like it implicitly here

This commit is contained in:
KimLS 2017-08-20 17:40:37 -07:00
parent 17544d4577
commit 0e8f6a32b1

View File

@ -455,8 +455,10 @@ void PathfinderWaypoint::BuildGraph()
m_impl->Tree = boost::geometry::index::rtree<RTreeValue, boost::geometry::index::quadratic<16>>(); m_impl->Tree = boost::geometry::index::rtree<RTreeValue, boost::geometry::index::quadratic<16>>();
for (auto &node : m_impl->Nodes) { for (auto &node : m_impl->Nodes) {
Point p = Point(node.v.x, node.v.y, node.v.z); RTreeValue rtv;
m_impl->Tree.insert(std::make_pair(p, node.id)); rtv.first = Point(node.v.x, node.v.y, node.v.z);
rtv.second = node.id;
m_impl->Tree.insert(rtv);
boost::add_vertex(m_impl->Graph); boost::add_vertex(m_impl->Graph);
} }