diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-21 11:31:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-21 11:31:35 -0600 |
commit | 423715cfc4e9060a2ad4fc37da2dd025aec233cd (patch) | |
tree | 13f15035d86bb8e7d5b2788df1e73351c168d48a /src/map | |
parent | e2f3dc61d7f2720f80d247354604b1ebdc15aad6 (diff) | |
download | tmwa-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.c | 2 |
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++; |