diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-13 17:32:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-13 17:32:17 +0300 |
commit | bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e (patch) | |
tree | 1da1e977384f461d9e89325275b42329c7a9bd16 | |
parent | 4749fcd6635946cb926f22dd0511d851a995ef7c (diff) | |
download | serverdata-bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e.tar.gz serverdata-bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e.tar.bz2 serverdata-bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e.tar.xz serverdata-bd22c1dcb8418c7bafbb1fbc1972379fa8d9237e.zip |
fix error in shops functions.
-rw-r--r-- | npc/functions/shops.txt | 4 |
1 files 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; } |