When a root node is deleted and new tree is built under the new root,
the new root node needs to have its parent set to null.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
/* First remove all children, if any */
/* First remove all children, if any */
if (!parent) {
parent = node->child[i];
if (!parent) {
parent = node->child[i];
continue;
}
_quadtree_reposition_reqursively(parent,
continue;
}
_quadtree_reposition_reqursively(parent,