aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/inventory.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/inventory.lua')
-rw-r--r--gamemode/shared/inventory.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/shared/inventory.lua b/gamemode/shared/inventory.lua
index 382ebd5..f83bb77 100644
--- a/gamemode/shared/inventory.lua
+++ b/gamemode/shared/inventory.lua
@@ -97,7 +97,7 @@ end
-- @return n The backpack number the item was found in.
function pmeta:HasItem(nameorcomparitor)
local comparitor
- if type(param) == "String" then
+ if type(nameorcomparitor) == "string" then
comparitor = function(t) return t.Name == nameorcomparitor end
else
comparitor = nameorcomparitor