mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 09:57:21 +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;
|
return;
|
||||||
|
|
||||||
// Only players can use this
|
// Only players can use this
|
||||||
if( pActivator->IsPlayer() )
|
if( pActivator && pActivator->IsPlayer() )
|
||||||
{
|
{
|
||||||
if( AwardToTeam() )
|
if( AwardToTeam() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user