BGE: Fix T45259 collision sensor registration.
authorPorteries Tristan <republicthunderbolt9@gmail.com>
Fri, 3 Jul 2015 21:48:26 +0000 (23:48 +0200)
committerPorteries Tristan <republicthunderbolt9@gmail.com>
Fri, 3 Jul 2015 21:48:26 +0000 (23:48 +0200)
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp

index 82451e6a3ed4a5b15ede01083eac71b02ba7e4be..9b2a83c3e67e9d2ee94d4043e6dc9b3925df4c27 100644 (file)
@@ -2242,7 +2242,7 @@ void CcdPhysicsEnvironment::AddTouchCallback(int response_class, PHY_ResponseCal
 bool CcdPhysicsEnvironment::RequestCollisionCallback(PHY_IPhysicsController* ctrl)
 {
        CcdPhysicsController* ccdCtrl = static_cast<CcdPhysicsController*>(ctrl);
-       return !ccdCtrl->Register();
+       return ccdCtrl->Register();
 }
 
 void   CcdPhysicsEnvironment::CallbackTriggers()