summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-08-21 13:36:14 -0400
committerMadCamel <madcamel@gmail.com>2009-08-21 13:36:14 -0400
commitdba8aaaeb3ac0c75054f8e5a590e2e4a2cbf2597 (patch)
treef70926e69e1b1d011d80d0e7884f89dcea57145b /src
parent44a76629cb297e949a8f8290e999504daffbda9e (diff)
parent423715cfc4e9060a2ad4fc37da2dd025aec233cd (diff)
downloadtmwa-dba8aaaeb3ac0c75054f8e5a590e2e4a2cbf2597.tar.gz
tmwa-dba8aaaeb3ac0c75054f8e5a590e2e4a2cbf2597.tar.bz2
tmwa-dba8aaaeb3ac0c75054f8e5a590e2e4a2cbf2597.tar.xz
tmwa-dba8aaaeb3ac0c75054f8e5a590e2e4a2cbf2597.zip
Merge branch 'master' of git://gitorious.org/tmw-eathena/mainline
Diffstat (limited to 'src')
-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++;