mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Fixed a crash when killer is worldspawn
This commit is contained in:
parent
108db28143
commit
71c4e21385
@ -5355,7 +5355,7 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(SendDeathMessage)(CBaseEntity *pKil
|
||||
}
|
||||
|
||||
// An recipient a client is a victim that involved in this kill
|
||||
if (pPlayer == pVictim && pVictim != pKillerPlayer)
|
||||
if (pKillerPlayer && pPlayer == pVictim && pVictim != pKillerPlayer)
|
||||
{
|
||||
// Sets a domination kill for recipient of the victim once until revenge
|
||||
int iKillsUnanswered = pVictim->CSPlayer()->m_iNumKilledByUnanswered[pKillerPlayer->entindex() - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user