Skip to content

Commit 32005e8

Browse files
committed
CDestroyablePhysicsObject: Fix incorrect type passed to GameObject::eDeath callback
1 parent e9bc987 commit 32005e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/DestroyablePhysicsObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void CDestroyablePhysicsObject::Destroy()
9999
{
100100
VERIFY(!physics_world()->Processing());
101101
const CGameObject *who_object = smart_cast<const CGameObject*>(FatalHit().initiator());
102-
callback(GameObject::eDeath)(lua_game_object(),who_object ? who_object : 0);
102+
callback(GameObject::eDeath)(lua_game_object(),who_object ? who_object->lua_game_object() : 0);
103103
CPHDestroyable::Destroy(ID(),"physic_destroyable_object");
104104
if(m_destroy_sound._handle())
105105
{

0 commit comments

Comments
 (0)