From 7a35e2ef5ebb943da0afd69e506e10fbe25d1fa1 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 18 Oct 2023 10:10:21 -0500 Subject: [PATCH] add guard for null --- src/game/shared/swarm/rd_inventory_shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/swarm/rd_inventory_shared.cpp b/src/game/shared/swarm/rd_inventory_shared.cpp index 498a62a5f..3f727ebfd 100644 --- a/src/game/shared/swarm/rd_inventory_shared.cpp +++ b/src/game/shared/swarm/rd_inventory_shared.cpp @@ -3622,7 +3622,7 @@ namespace ReactiveDropInventory if ( !pAttacker || !pAttacker->IsInhabitableNPC() ) { - if ( pTarget && pTarget->IsInhabitableNPC() && !V_stricmp( IGameSystem::MapName(), "rd-reduction2" ) && !V_strcmp( pAttacker->GetClassname(), "trigger_hurt" ) && !V_strcmp( STRING( pAttacker->GetEntityName() ), "trigger_pitworm_hitbox" ) ) + if ( pAttacker && pTarget && pTarget->IsInhabitableNPC() && !V_stricmp( IGameSystem::MapName(), "rd-reduction2" ) && !V_strcmp( pAttacker->GetClassname(), "trigger_hurt" ) && !V_strcmp( STRING( pAttacker->GetEntityName() ), "trigger_pitworm_hitbox" ) ) { #ifdef CLIENT_DLL static bool s_bRequestedWormToucherMedal = false;