Skip to content

Commit

Permalink
[BR] Fix crash on removing Aggregate with static filter hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeblote committed Jan 15, 2023
1 parent 4b2aa6e commit 204b513
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions physx/source/lowlevelaabb/src/BpAABBManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,15 +1831,12 @@ void AABBManager::processBPDeletedPair(const BroadPhasePair& pair)
else
pairMap = &mActorAggregatePairs; // PT: actor-aggregate pair

PersistentPairs* p;
if (const AggPairMap::Entry* e = pairMap->find(AggPair(volA, volB)))
{
const AggPairMap::Entry* e = pairMap->find(AggPair(volA, volB));
PX_ASSERT(e);
p = e->second;
PersistentPairs* p = e->second;
p->outputDeletedOverlaps(mDestroyedOverlaps, mVolumeData.begin());
p->mShouldBeDeleted = true;
}

p->outputDeletedOverlaps(mDestroyedOverlaps, mVolumeData.begin());
p->mShouldBeDeleted = true;
}

struct CreatedPairHandler
Expand Down

0 comments on commit 204b513

Please sign in to comment.