summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
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++;