summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-21 11:31:35 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-21 11:31:35 -0600
commit423715cfc4e9060a2ad4fc37da2dd025aec233cd (patch)
tree13f15035d86bb8e7d5b2788df1e73351c168d48a /src/map
parente2f3dc61d7f2720f80d247354604b1ebdc15aad6 (diff)
downloadtmwa-423715cfc4e9060a2ad4fc37da2dd025aec233cd.tar.gz
tmwa-423715cfc4e9060a2ad4fc37da2dd025aec233cd.tar.bz2
tmwa-423715cfc4e9060a2ad4fc37da2dd025aec233cd.tar.xz
tmwa-423715cfc4e9060a2ad4fc37da2dd025aec233cd.zip
Fix buying items
Diffstat (limited to 'src/map')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index a24a458..10d64db 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -944,7 +944,7 @@ int npc_buylist(struct map_session_data *sd,int n,unsigned short *item_list)
case ADDITEM_EXIST:
break;
case ADDITEM_NEW:
- if (itemdb_isequip)
+ if (itemdb_isequip(item_list[i*2+1]))
new += item_list[i*2];
else
new++;