mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 16:33:56 +02:00
Fixing a terrible bug!
This commit is contained in:
parent
31230e81bb
commit
dedfee3acc
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ Octree::Indices Octree::indexConcreteCellPath(const Locations& path) const {
|
|||
Index currentIndex = ROOT_CELL;
|
||||
Indices cellPath(1, currentIndex);
|
||||
|
||||
for (auto& location : path) {
|
||||
// Start the path after the root cell so at #1
|
||||
for (size_t p = 1; p < path.size(); p++) {
|
||||
auto& location = path[p];
|
||||
auto nextIndex = getConcreteCell(currentIndex).child(location.octant());
|
||||
if (nextIndex == INVALID_CELL) {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue