summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/inventoryplace.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt
index a084f2e9..4b3990b7 100644
--- a/npc/functions/inventoryplace.txt
+++ b/npc/functions/inventoryplace.txt
@@ -15,7 +15,7 @@ function script InventoryPlace {
set @iteminfo, getiteminfo(@item,2);
set @countitem, countitem(@item);
- if (checkweight("@item", "@count") == 0) goto l_Warn;
+ if (checkweight(@item, @count) == 0) goto l_Warn;
if ((@iteminfo < 4) && (@countitem == 0) && (@inventorylist_count < 100)) return;
if ((@iteminfo < 4) && (@countitem > 0)) return;
if (@inventorylist_count + @count <= 100) return;