in btSimpleBroadphase::destroyProxy(), remove pairs before freeing proxy
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user