From 5d2997987542c9f69e2ff9682d964fc17d106414 Mon Sep 17 00:00:00 2001 From: Robin Engman Date: Wed, 12 Feb 2014 10:57:55 +0100 Subject: [PATCH] Fixed which body to send --- Code/GamePhysics/Implementation/PhysicsAPI_Impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/GamePhysics/Implementation/PhysicsAPI_Impl.h b/Code/GamePhysics/Implementation/PhysicsAPI_Impl.h index c54ebe37..c2e3d5ea 100644 --- a/Code/GamePhysics/Implementation/PhysicsAPI_Impl.h +++ b/Code/GamePhysics/Implementation/PhysicsAPI_Impl.h @@ -35,13 +35,13 @@ namespace Oyster if(colObj0->m_collisionObject == &body) { pt = cp.m_localPointA; - this->func((ICustomBody*)(colObj0->getCollisionObject()->getUserPointer()), this->args); + this->func((ICustomBody*)(colObj1->getCollisionObject()->getUserPointer()), this->args); } else { assert(colObj1->m_collisionObject == &body && "Body does not match either collision object"); pt = cp.m_localPointB; - this->func((ICustomBody*)(colObj1->getCollisionObject()->getUserPointer()), this->args); + this->func((ICustomBody*)(colObj0->getCollisionObject()->getUserPointer()), this->args); } return 0;