From 63d349ad5ea3c2638755d74e7870e6969fe3ed2a Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 15 Aug 2007 15:33:56 +0000 Subject: [PATCH] don't create an empty algorithm when not searching, thanks Marten SvanFeldt for pointing this out --- .../BulletMultiThreaded/SpuGatheringCollisionDispatcher.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.cpp b/Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.cpp index b8df1b4bd..4d63c0fed 100644 --- a/Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.cpp +++ b/Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.cpp @@ -131,11 +131,7 @@ public: collisionPair.m_algorithm = m_dispatcher->findAlgorithm(colObj0,colObj1); collisionPair.m_userInfo = (void*)3; } - } else - { - //create an empty algorithm - collisionPair.m_algorithm = new btEmptyAlgorithm(ci); - } + } } } return false;