fix delete local voxels in case of last voxel server going away

This commit is contained in:
ZappoMan 2013-08-08 14:30:46 -07:00
parent 48e35ec6cb
commit 6d4ebda1ff

View file

@ -1548,7 +1548,7 @@ bool VoxelSystem::killSourceVoxelsOperation(VoxelNode* node, void* extraData) {
for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
VoxelNode* childNode = node->getChildAtIndex(i);
if (childNode) {
uint16_t childNodeID = childNodeID = childNode->getSourceID();
uint16_t childNodeID = childNode->getSourceID();
if (childNodeID == killedNodeID) {
node->safeDeepDeleteChildAtIndex(i);
}