Skip to content

Commit

Permalink
Fix: CollisionDetection crash (introduced in Issue #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
attcs committed Jul 28, 2024
1 parent 2b42abf commit dfae064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octree.h
Original file line number Diff line number Diff line change
Expand Up @@ -3524,10 +3524,10 @@ namespace OrthoTree

for (std::size_t iNodePrev = 0, iNodeParent = 0; iNodePrev < iNodeKey && iNodeParent < parentNodeKeysNo;)
{
if (parentNodeKeys[iNodeParent] == currentNodeKeys[iNodeParent] || (parentNodeKeys[iNodeParent] == keysOfEntitysDepth[iNodePrev]))
if (parentNodeKeys[iNodeParent] == currentNodeKeys[iNodePrev] || (parentNodeKeys[iNodeParent] == keysOfEntitysDepth[iNodePrev]))
{
// Found an earlier common key
entityIDPairsFromOtherBranch.at(entityID).emplace(entityIDFromParent);
entityIDPairsFromOtherBranch[entityID].emplace(entityIDFromParent);
break;
}
else if (parentNodeKeys[iNodeParent] < currentNodeKeys[iNodePrev])
Expand Down

0 comments on commit dfae064

Please sign in to comment.