2
0
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:
Roman Chistokhodov 2024-10-09 22:11:45 +03:00 committed by GitHub
parent 1a29908ead
commit 35f1388bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() )
{