We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9bc987 commit 32005e8Copy full SHA for 32005e8
src/xrGame/DestroyablePhysicsObject.cpp
@@ -99,7 +99,7 @@ void CDestroyablePhysicsObject::Destroy()
99
{
100
VERIFY(!physics_world()->Processing());
101
const CGameObject *who_object = smart_cast<const CGameObject*>(FatalHit().initiator());
102
- callback(GameObject::eDeath)(lua_game_object(),who_object ? who_object : 0);
+ callback(GameObject::eDeath)(lua_game_object(),who_object ? who_object->lua_game_object() : 0);
103
CPHDestroyable::Destroy(ID(),"physic_destroyable_object");
104
if(m_destroy_sound._handle())
105
0 commit comments