diff --git a/server/functions.lua b/server/functions.lua index 40ebc61e4..79b3b27f6 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -379,7 +379,7 @@ function CanAddItem(identifier, item, amount) return false, 'weight' end - local slotsUsed, slotsFree = GetSlots(identifier) + local slotsUsed, _ = GetSlots(identifier) if slotsUsed >= inventory.slots then return false, 'slots'