mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fix null dereference in game_score (#472)
This commit is contained in:
parent
1a29908ead
commit
35f1388bd7
@ -169,7 +169,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() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user