From 35f1388bd79ddc000076f8a9b16a42b916015ac8 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Wed, 9 Oct 2024 22:11:45 +0300 Subject: [PATCH] Fix null dereference in game_score (#472) --- dlls/maprules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/maprules.cpp b/dlls/maprules.cpp index ffeb4dbf..7a9e993e 100644 --- a/dlls/maprules.cpp +++ b/dlls/maprules.cpp @@ -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() ) {