summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/shops.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt
index 6e1a5780e..d5dabca7d 100644
--- a/npc/functions/shops.txt
+++ b/npc/functions/shops.txt
@@ -8,7 +8,7 @@
// Item ID, Item Price, Item Amount
function script restoreshopitem {
- if (getarg(2) < 1) {
+ if (getarg(2, -1337) == -1337) {
.@amount=getarg(1);
.@price=-1;
} else {