Skip to content

Commit

Permalink
Fix null dereference in game_score
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Oct 8, 2024
1 parent c461624 commit a592043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/maprules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void CGameScore::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE us
return;

// Only players can use this
if( pActivator->IsPlayer() )
if( pActivator && pActivator->IsPlayer() )
{
if( AwardToTeam() )
{
Expand Down

0 comments on commit a592043

Please sign in to comment.