mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-04 14:01:23 +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())) {
|
if (_cells[parent].hasChild(location.octant())) {
|
||||||
return _cells[parent].child(location.octant());
|
return _cells[parent].child(location.octant());
|
||||||
}
|
}
|
||||||
|
assert(_cells[parent].getlocation().child(location.octant()) == location);
|
||||||
if (!(_cells[parent].getlocation().child(location.octant()) == location)) {
|
|
||||||
auto parentLoc = _cells[parent].getlocation();
|
|
||||||
assert(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
Index newIndex;
|
Index newIndex;
|
||||||
if (_freeCells.empty()) {
|
if (_freeCells.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue