diff options
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rwxr-xr-x | indra/newview/llspatialpartition.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 86d1948baa..7b894d8d98 100755 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -840,9 +840,9 @@ void LLSpatialGroup::handleDestruction(const TreeNode* node) { return; } - setState(DEAD); - - for (element_iter i = getDataBegin(); getElementCount() > 0 && i != getDataEnd();) + setState(DEAD); + + for (element_iter i = getDataBegin(); i != getDataEnd(); ++i) { LLViewerOctreeEntry* entry = *i; @@ -852,14 +852,6 @@ void LLSpatialGroup::handleDestruction(const TreeNode* node) { ((LLDrawable*)entry->getDrawable())->setGroup(NULL); } - else - { - LL_ERRS() << "No Drawable found in the entry." << LL_ENDL; - } - } - else - { - ++i; } } |