Skip to content

Commit

Permalink
CDestroyablePhysicsObject: Fix incorrect type passed to GameObject::e…
Browse files Browse the repository at this point in the history
…Death callback
  • Loading branch information
revolucas committed Sep 9, 2016
1 parent e9bc987 commit 32005e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/DestroyablePhysicsObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void CDestroyablePhysicsObject::Destroy()
{
VERIFY(!physics_world()->Processing());
const CGameObject *who_object = smart_cast<const CGameObject*>(FatalHit().initiator());
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);
CPHDestroyable::Destroy(ID(),"physic_destroyable_object");
if(m_destroy_sound._handle())
{
Expand Down

3 comments on commit 32005e8

@Xottab-DUTY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be indicated as a bug fix in "Changes" page on wiki.

@revolucas
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK done.

@Xottab-DUTY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's other commits, that we need to indicate, but I don't know who will do that)

Please sign in to comment.