CR feedback

This commit is contained in:
ZappoMan 2014-09-03 12:48:39 -07:00
parent 29bbeadbc7
commit 756840d541

View file

@ -240,18 +240,15 @@ OctreeElement* OctreeElement::removeChildAtIndex(int childIndex) {
}
bool OctreeElement::isParentOf(OctreeElement* possibleChild) const {
bool isParentOf = false;
if (possibleChild) {
for (int childIndex = 0; childIndex < NUMBER_OF_CHILDREN; childIndex++) {
OctreeElement* childAt = getChildAtIndex(childIndex);
if (childAt == possibleChild) {
isParentOf = true;
break;
return true;
}
}
}
return isParentOf;
return false;
}