From c1ab5a9db773d399c86eb59a3dded649387480c0 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 22 Feb 2016 02:46:55 +0100 Subject: Edited npc->cashshop_buylist() to use the new struct itemlist - The npc-side code no longer depends on the client packet data layout. Signed-off-by: Haru --- src/map/npc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index be878933e..2731d51db 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -29,7 +29,9 @@ #include +/* Forward declarations */ struct hplugin_data_store; +struct itemlist; // map/itemdb.h struct view_data; enum npc_parse_options { @@ -230,7 +232,7 @@ struct npc_interface { int (*click) (struct map_session_data *sd, struct npc_data *nd); int (*scriptcont) (struct map_session_data *sd, int id, bool closing); int (*buysellsel) (struct map_session_data *sd, int id, int type); - int (*cashshop_buylist) (struct map_session_data *sd, int points, int count, unsigned short *item_list); + int (*cashshop_buylist) (struct map_session_data *sd, int points, struct itemlist *item_list); int (*buylist_sub) (struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd); int (*cashshop_buy) (struct map_session_data *sd, int nameid, int amount, int points); int (*buylist) (struct map_session_data *sd, int n, unsigned short *item_list); -- cgit v1.2.3-60-g2f50