diff options
author | Haru <haru@dotalux.com> | 2016-01-07 17:36:25 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:00:30 +0100 |
commit | d734e17ce1cbbd2379fc438a3269416d2ff1ed44 (patch) | |
tree | b146e4d2778f7cf53aea34853ea0ebe957db582e /src/map/npc.c | |
parent | 3188738be5ee78651e31c1340fac7fed81bbefb5 (diff) | |
download | hercules-d734e17ce1cbbd2379fc438a3269416d2ff1ed44.tar.gz hercules-d734e17ce1cbbd2379fc438a3269416d2ff1ed44.tar.bz2 hercules-d734e17ce1cbbd2379fc438a3269416d2ff1ed44.tar.xz hercules-d734e17ce1cbbd2379fc438a3269416d2ff1ed44.zip |
Added const qualifier to various variable/argument pointers
- This is necessary for compatibility with a const RP2PTR/RFIFO2PTR
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 9bd6698d2..7ef0ba36a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1934,7 +1934,9 @@ int npc_buylist(struct map_session_data* sd, int n, unsigned short* item_list) { /** * parses incoming npc market purchase list **/ -int npc_market_buylist(struct map_session_data* sd, unsigned short list_size, struct packet_npc_market_purchase *p) { +// FIXME[Haru]: This needs to be decoupled from the client. A packet struct should never make it into npc functions. +int npc_market_buylist(struct map_session_data* sd, unsigned short list_size, struct packet_npc_market_purchase *p) +{ struct npc_data* nd; struct npc_item_list *shop = NULL; int64 z; |