Skip to content

Commit

Permalink
add guard for null
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Oct 18, 2023
1 parent 174617c commit 7a35e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/shared/swarm/rd_inventory_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a35e2e

Please sign in to comment.