Skip to content

Commit

Permalink
localize weapon class
Browse files Browse the repository at this point in the history
  • Loading branch information
Aws0mee authored and FPtje committed Dec 25, 2024
1 parent 883a6a4 commit a20f804
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entities/weapons/weaponchecker/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@ function SWEP:Succeed()
local stripped = {}

self:GetStrippableWeapons(ent, function(wep)
ent:StripWeapon(wep:GetClass())
stripped[wep:GetClass()] = {
class = wep:GetClass(),
local class = wep:GetClass()
ent:StripWeapon(class)
stripped[class] = {
class = class,
primaryAmmoCount = ent:GetAmmoCount(wep:GetPrimaryAmmoType()),
primaryAmmoType = wep:GetPrimaryAmmoType(),
secondaryAmmoCount = ent:GetAmmoCount(wep:GetSecondaryAmmoType()),
Expand Down

0 comments on commit a20f804

Please sign in to comment.