Skip to content

Commit

Permalink
fix(client): giveItemToTarget count type check (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathu-lmn authored Oct 1, 2023
1 parent 8940f92 commit a25ec83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ end)

local function giveItemToTarget(serverId, slotId, count)
if type(slotId) ~= 'number' then return TypeError('slotId', 'number', type(slotId)) end
if count and type(slotId) ~= 'number' then return TypeError('count', 'number', type(count)) end
if count and type(count) ~= 'number' then return TypeError('count', 'number', type(count)) end

if slotId == currentWeapon?.slot then
currentWeapon = Weapon.Disarm(currentWeapon)
Expand Down

0 comments on commit a25ec83

Please sign in to comment.