From 74c7a160da34897ebdf18aaff02b8c9b65809949 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 24 Oct 2016 12:12:19 -0400 Subject: Various other updates and bugfixes --- gamemode/shared/inventory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/shared/inventory.lua') 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 -- cgit v1.2.3-70-g09d2