Fixed deleted double indirection

This commit is contained in:
m.overtheil 2014-12-08 15:37:23 +01:00
parent 53aecd416f
commit eecc4b480e
1 changed files with 5 additions and 1 deletions

View File

@ -278,8 +278,12 @@ public:
for (std::size_t i = 0; i < pts.size(); ++i){
ptstmp[i] = *data[i];
}
for(std::size_t i = 0; i < leaf_nodes.size(); ++i){
int tmp = leaf_nodes[i].begin() - pts.begin();
leaf_nodes[i].data = ptstmp.begin() + tmp;
}
pts.swap(ptstmp);
built_ = true;
}