don't use multisap yet in basic demo.

fix crash in multi sap (due to new pair manager)
This commit is contained in:
ejcoumans
2007-10-11 03:32:37 +00:00
parent 0405ce278a
commit 52eb5fa1a4
2 changed files with 7 additions and 3 deletions

View File

@@ -103,6 +103,8 @@ void btMultiSapBroadphase::calculateOverlappingPairs(btDispatcher* dispatcher)
btBroadphasePairArray& overlappingPairArray = m_overlappingPairs->getOverlappingPairArray();
#ifndef USE_HASH_PAIRCACHE
//perform a sort, to find duplicates and to sort 'invalid' pairs to the end
overlappingPairArray.heapSort(btBroadphasePairSortPredicate());
@@ -172,6 +174,8 @@ void btMultiSapBroadphase::calculateOverlappingPairs(btDispatcher* dispatcher)
m_invalidPair = 0;
#endif//CLEAN_INVALID_PAIRS
#endif //USE_HASH_PAIRCACHE
}