Skip to content

Commit

Permalink
Client: Deathnotice: Check that this player info is valid (#220)
Browse files Browse the repository at this point in the history
Resolves #220
  • Loading branch information
tmp64 committed May 12, 2024
1 parent 1a1f601 commit f52e560
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/client/hud/death_notice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ void CHudDeathNotice::Think()
// This message handler may be better off elsewhere
int CHudDeathNotice::MsgFunc_DeathMsg(const char *pszName, int iSize, void *pbuf)
{
if (!GetThisPlayerInfo())
{
// Not yet connected
return 1;
}

m_iFlags |= HUD_ACTIVE;

BEGIN_READ(pbuf, iSize);
Expand Down

0 comments on commit f52e560

Please sign in to comment.