Skip to content

Commit

Permalink
NeedsDefuseKit() check on OnSpawnEquip()
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Dec 13, 2023
1 parent f79351a commit 775290e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10324,7 +10324,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(OnSpawnEquip)(bool addDefault, bool equipG
}
}

if ((int)defuser_allocation.value == DEFUSERALLOCATION_ALL)
if (NeedsDefuseKit() && (int)defuser_allocation.value == DEFUSERALLOCATION_ALL)
GiveNamedItemEx("item_thighpack");
#endif
}
Expand Down

0 comments on commit 775290e

Please sign in to comment.