mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Explicit RTreeValue decl because gcc didnt like it implicitly here
This commit is contained in:
parent
17544d4577
commit
0e8f6a32b1
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user