From a11b6858d3e8fadc7322523b920cf4f5d487e799 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Thu, 17 Oct 2013 14:43:19 -0700 Subject: [PATCH] fix small stats bug --- libraries/voxels/src/VoxelNode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/voxels/src/VoxelNode.cpp b/libraries/voxels/src/VoxelNode.cpp index 39099b44ba..e298b032df 100644 --- a/libraries/voxels/src/VoxelNode.cpp +++ b/libraries/voxels/src/VoxelNode.cpp @@ -112,6 +112,10 @@ VoxelNode::~VoxelNode() { setChildAtIndex(i, NULL); } } + + // at this point, we should have no children, but we need to drop ourselves from population counts + _singleChildrenCount--; + _childrenCount[0]--; } void VoxelNode::markWithChangedTime() {