summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 03:53:36 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:02:21 +0100
commit3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a (patch)
tree15db076f3c6027de5a04055e02f2979b18e045d0 /src/map/packets_struct.h
parent23f1ef310719081c79aebf3f8921240773f5a507 (diff)
downloadhercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.gz
hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.bz2
hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.tar.xz
hercules-3b9c0daf1bc4d4c8d4c39f3e5e4e25d103ed9b3a.zip
Edited npc->market_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/packets_struct.h')
-rw-r--r--src/map/packets_struct.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 90ea85d4a..f23cefb26 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -1105,8 +1105,7 @@ struct packet_npc_market_purchase {
struct {
unsigned short ITID;
int qty;
- } list[MAX_INVENTORY];/* assuming MAX_INVENTORY is max since you can't hold more than MAX_INVENTORY items thus cant buy that many at once. */
- // TODO[Haru]: Change to a flexible array
+ } list[]; // Note: We assume this should be <= MAX_INVENTORY (since you can't hold more than MAX_INVENTORY items thus cant buy that many at once).
} __attribute__((packed));
struct packet_npc_market_result_ack {