Skip to content

Commit

Permalink
Fix invalid explosion creator in CExplosionSA::GetExplosionCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
codenulls committed Dec 14, 2018
1 parent 7d0d254 commit dde556e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Client/game_sa/CExplosionSA.cpp
Expand Up @@ -45,22 +45,21 @@ CEntity* CExplosionSA::GetExplosionCreator(void)
{
case ENTITY_TYPE_PED:
{
SClientEntity<CPedSA>* pPedClientEntity = pools->GetPed((DWORD*)entity->m_pInterface);
SClientEntity<CPedSA>* pPedClientEntity = pools->GetPed((DWORD*)this->GetInterface()->m_pEntExplosionOwner);
if (pPedClientEntity)
{
return pPedClientEntity->pEntity;
;
}
break;
}
case ENTITY_TYPE_VEHICLE:
{
SClientEntity<CVehicleSA>* pVehicleClientEntity = pools->GetVehicle((DWORD*)entity->m_pInterface);
SClientEntity<CVehicleSA>* pVehicleClientEntity = pools->GetVehicle((DWORD*)this->GetInterface()->m_pEntExplosionOwner);
if (pVehicleClientEntity)
{
return pVehicleClientEntity->pEntity;
break;
}
break;
}
case ENTITY_TYPE_OBJECT:
{
Expand Down

0 comments on commit dde556e

Please sign in to comment.