]> git.itanic.dy.fi Git - sdl-planets/commit
quadtree_add: Zero child pointers when a new node is added
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 24 Apr 2010 10:59:14 +0000 (13:59 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 24 Apr 2010 10:59:14 +0000 (13:59 +0300)
commit29fe1630973392185731f4289537e29365d315fc
treef2a54a80bdc82721f4511f861e429facd9437bad
parentb77bffb004c6b6d8d97f3a32d2373f0376d5cc70
quadtree_add: Zero child pointers when a new node is added

Since we don't support adding an entire subtree, it is better to zero
out the child pointers to ensure there are no leftover child nodes
that might corrupt the tree integrity.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
quadtree.c