Skip to content

Commit

Permalink
Fixed a crash when killer is worldspawn
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Sep 28, 2023
1 parent 108db28 commit 71c4e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 71c4e21

Please sign in to comment.