From a5920438bcbcbfa2bb3d0b4aa5d739fe67eee9a1 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 8 Oct 2024 13:53:54 +0300 Subject: [PATCH] Fix null dereference in game_score --- dlls/maprules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/maprules.cpp b/dlls/maprules.cpp index c447a6080..543f97402 100644 --- a/dlls/maprules.cpp +++ b/dlls/maprules.cpp @@ -168,7 +168,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() ) {