From 60f55c7f3fd3f4dcaa1a30a3e5ffd6dd33753423 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Sun, 11 Jan 2015 12:07:16 -0800 Subject: [PATCH] remove important code from assert so it still runs in release build --- libraries/entities/src/DeleteEntityOperator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/entities/src/DeleteEntityOperator.cpp b/libraries/entities/src/DeleteEntityOperator.cpp index 890c301682..698ef18936 100644 --- a/libraries/entities/src/DeleteEntityOperator.cpp +++ b/libraries/entities/src/DeleteEntityOperator.cpp @@ -92,7 +92,8 @@ bool DeleteEntityOperator::preRecursion(OctreeElement* element) { // and we can stop searching. if (entityTreeElement == details.containingElement) { 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 _foundCount++; }