History

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

ZappoMan committed 13 years ago

Commit 6d4ebda1 parent 48e35ec1 file · +1 −1Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -1548,7 +1548,7 @@ bool VoxelSystem::killSourceVoxelsOperation(VoxelNode* node, void* extraData) { · 1547 unmodified lines
15481548 for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
15491549 VoxelNode* childNode = node->getChildAtIndex(i);
15501550 if (childNode) {
1551− uint16_t childNodeID = childNodeID = childNode->getSourceID();
1551+ uint16_t childNodeID = childNode->getSourceID();
15521552 if (childNodeID == killedNodeID) {
15531553 node->safeDeepDeleteChildAtIndex(i);
15541554 }