From bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Feb 2015 17:32:17 +0300 Subject: fix error in shops functions. --- npc/functions/shops.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt index 0e491706..928393f9 100644 --- a/npc/functions/shops.txt +++ b/npc/functions/shops.txt @@ -7,7 +7,7 @@ // none function script restoreshopitem { - if (shopcount(args(0)) < args(1)) - sellitem args(0), -1, args(1); + if (shopcount(getarg(0)) < getarg(1)) + sellitem getarg(0), -1, getarg(1); return; } -- cgit v1.2.3-70-g09d2