mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-28 20:02:04 +02:00
cleaning a if into an assert
This commit is contained in:
parent
dedfee3acc
commit
898cfbc043
1 changed files with 1 additions and 5 deletions
|
@ -113,11 +113,7 @@ Octree::Index Octree::allocateCell(Index parent, const Location& location) {
|
|||
if (_cells[parent].hasChild(location.octant())) {
|
||||
return _cells[parent].child(location.octant());
|
||||
}
|
||||
|
||||
if (!(_cells[parent].getlocation().child(location.octant()) == location)) {
|
||||
auto parentLoc = _cells[parent].getlocation();
|
||||
assert(false);
|
||||
}
|
||||
assert(_cells[parent].getlocation().child(location.octant()) == location);
|
||||
|
||||
Index newIndex;
|
||||
if (_freeCells.empty()) {
|
||||
|
|
Loading…
Reference in a new issue