diff options
author | Haru <haru@dotalux.com> | 2016-02-22 04:25:34 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:02:22 +0100 |
commit | 027dfa3a608bb2986f4c495f20afdeba4e2ad459 (patch) | |
tree | 629046feb2d98a8a8fe0bc9e3674b3952a529ecc /src/map/npc.h | |
parent | c1e21d7f3665b7e79fd0d5777df99fcfb8f93434 (diff) | |
download | hercules-027dfa3a608bb2986f4c495f20afdeba4e2ad459.tar.gz hercules-027dfa3a608bb2986f4c495f20afdeba4e2ad459.tar.bz2 hercules-027dfa3a608bb2986f4c495f20afdeba4e2ad459.tar.xz hercules-027dfa3a608bb2986f4c495f20afdeba4e2ad459.zip |
Edited npc->selllist() 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 dbd740b46..9867055a3 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -236,8 +236,8 @@ struct npc_interface { 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, 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 (*selllist_sub) (struct map_session_data *sd, struct itemlist *item_list, struct npc_data *nd); + int (*selllist) (struct map_session_data *sd, struct itemlist *item_list); int (*remove_map) (struct npc_data *nd); int (*unload_ev) (DBKey key, DBData *data, va_list ap); int (*unload_ev_label) (DBKey key, DBData *data, va_list ap); |