forked from bartvdbraak/blender
Fix for bad NULL check
This commit is contained in:
parent
10af70cef8
commit
a21caf32cc
@ -85,7 +85,7 @@ bool KX_TouchEventManager::newBroadphaseResponse(void *client_data,
|
|||||||
PHY_IPhysicsController* ctrl2 = static_cast<PHY_IPhysicsController*>(object2);
|
PHY_IPhysicsController* ctrl2 = static_cast<PHY_IPhysicsController*>(object2);
|
||||||
|
|
||||||
KX_ClientObjectInfo *info1 = (ctrl1) ? static_cast<KX_ClientObjectInfo*>(ctrl1->GetNewClientInfo()) : NULL;
|
KX_ClientObjectInfo *info1 = (ctrl1) ? static_cast<KX_ClientObjectInfo*>(ctrl1->GetNewClientInfo()) : NULL;
|
||||||
KX_ClientObjectInfo *info2 = (ctrl1) ? static_cast<KX_ClientObjectInfo*>(ctrl2->GetNewClientInfo()) : NULL;
|
KX_ClientObjectInfo *info2 = (ctrl2) ? static_cast<KX_ClientObjectInfo*>(ctrl2->GetNewClientInfo()) : NULL;
|
||||||
|
|
||||||
// This call back should only be called for controllers of Near and Radar sensor
|
// This call back should only be called for controllers of Near and Radar sensor
|
||||||
if (!info1)
|
if (!info1)
|
||||||
|
Loading…
Reference in New Issue
Block a user