mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-21 09:26:14 +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