mirror of
https://github.com/lubosz/overte.git
synced 2025-08-04 19:39:44 +02:00
remove important code from assert so it still runs in release build
This commit is contained in:
parent
d1eddad00b
commit
60f55c7f3f
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ bool DeleteEntityOperator::preRecursion(OctreeElement* element) {
|
||||||
// and we can stop searching.
|
// and we can stop searching.
|
||||||
if (entityTreeElement == details.containingElement) {
|
if (entityTreeElement == details.containingElement) {
|
||||||
EntityItem* theEntity = details.entity;
|
EntityItem* theEntity = details.entity;
|
||||||
assert(entityTreeElement->removeEntityItem(theEntity)); // remove it from the element
|
bool entityDeleted = entityTreeElement->removeEntityItem(theEntity); // remove it from the element
|
||||||
|
assert(entityDeleted);
|
||||||
_tree->setContainingElement(details.entity->getEntityItemID(), NULL); // update or id to element lookup
|
_tree->setContainingElement(details.entity->getEntityItemID(), NULL); // update or id to element lookup
|
||||||
_foundCount++;
|
_foundCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue