From 423715cfc4e9060a2ad4fc37da2dd025aec233cd Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 21 Aug 2009 11:31:35 -0600 Subject: Fix buying items --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.3-70-g09d2