diff options
author | Stephen Gold <sgold@sonic.net> | 2019-04-02 21:51:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 21:51:58 -0700 |
commit | 231195843f25a728f8c9acc663453e909f995f23 (patch) | |
tree | 36403a1cec2196a9fd687337fde17d514033a9e0 | |
parent | 0e232578552065e7a8576582174cdc63ca05f377 (diff) | |
download | bullet3-231195843f25a728f8c9acc663453e909f995f23.tar.gz |
in btSimpleBroadphase::destroyProxy(), remove pairs before freeing proxy
-rw-r--r-- | src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp b/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp index 166cf771f..b7fe0a1f3 100644 --- a/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp +++ b/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp @@ -123,11 +123,11 @@ protected: void btSimpleBroadphase::destroyProxy(btBroadphaseProxy* proxyOrg, btDispatcher* dispatcher) { + m_pairCache->removeOverlappingPairsContainingProxy(proxyOrg, dispatcher); + btSimpleBroadphaseProxy* proxy0 = static_cast<btSimpleBroadphaseProxy*>(proxyOrg); freeHandle(proxy0); - m_pairCache->removeOverlappingPairsContainingProxy(proxyOrg, dispatcher); - //validate(); } |