diff options
author | Haru <haru@dotalux.com> | 2016-02-22 04:09:03 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:02:22 +0100 |
commit | c1e21d7f3665b7e79fd0d5777df99fcfb8f93434 (patch) | |
tree | 7a6f22607ac4e18214cffa1a8582098a686e6af5 /src/map/npc.h | |
parent | 3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a (diff) | |
download | hercules-c1e21d7f3665b7e79fd0d5777df99fcfb8f93434.tar.gz hercules-c1e21d7f3665b7e79fd0d5777df99fcfb8f93434.tar.bz2 hercules-c1e21d7f3665b7e79fd0d5777df99fcfb8f93434.tar.xz hercules-c1e21d7f3665b7e79fd0d5777df99fcfb8f93434.zip |
Edited npc->buylist() to use the new struct itemlist
- The npc-side code no longer depends on the client data layout.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index 1c7ad8398..dbd740b46 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -233,9 +233,9 @@ struct npc_interface { 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, struct itemlist *item_list); - int (*buylist_sub) (struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd); + int (*buylist_sub) (struct map_session_data *sd, struct itemlist *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); + int (*buylist) (struct map_session_data *sd, struct itemlist *item_list); int (*selllist_sub) (struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd); int (*selllist) (struct map_session_data *sd, int n, unsigned short *item_list); int (*remove_map) (struct npc_data *nd); |