From bccdfa9b5803adfc81fccf725acf0b693d49239a Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Fri, 27 Jan 2017 20:26:56 +0100 Subject: [PATCH] Fix issue in collision detection --- src/collision/CollisionDetection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collision/CollisionDetection.cpp b/src/collision/CollisionDetection.cpp index 345c46bb..be17e4f7 100644 --- a/src/collision/CollisionDetection.cpp +++ b/src/collision/CollisionDetection.cpp @@ -605,7 +605,7 @@ NarrowPhaseInfo* CollisionDetection::computeMiddlePhaseForProxyShapes(ProxyShape computeConvexVsConcaveMiddlePhase(&pair, mMemoryAllocator, &narrowPhaseInfo); } - return nullptr; + return narrowPhaseInfo; } // Report all the bodies that overlap with the aabb in parameter @@ -976,7 +976,7 @@ void CollisionDetection::testCollision(CollisionCallback* callback) { // For each possible collision pair of bodies map::iterator it; - for (it = mOverlappingPairs.begin(); it != mOverlappingPairs.end(); ) { + for (it = mOverlappingPairs.begin(); it != mOverlappingPairs.end(); ++it) { OverlappingPair* pair = it->second;