From d622e2ff1758b28fcbce0e7ccc455405887a277a Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Thu, 21 Nov 2013 23:26:19 +0100 Subject: [PATCH] Fix issue in the broad-phase pair manager --- src/collision/broadphase/PairManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collision/broadphase/PairManager.h b/src/collision/broadphase/PairManager.h index 336df403..b95ea011 100644 --- a/src/collision/broadphase/PairManager.h +++ b/src/collision/broadphase/PairManager.h @@ -33,7 +33,7 @@ /// Namespace ReactPhysics3D namespace reactphysics3d { - + // Declaration class CollisionDetection; @@ -273,7 +273,7 @@ inline BodyPair* PairManager::findPair(bodyindex id1, bodyindex id2) const { uint hashValue = computeHashBodies(id1, id2) & mHashMask; // Look for the pair in the set of overlapping pairs - lookForAPair(id1, id2, hashValue); + return lookForAPair(id1, id2, hashValue); } // Find a pair given two body IDs and an hash value.