summaryrefslogtreecommitdiff
path: root/src/map/buyingstore.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-10 01:59:57 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:25 +0300
commitd82c06ba163ee9529358e4de83370d0b2fa77769 (patch)
tree05d6c28dcb21d09d1e31b289fddac983ec8ba80f /src/map/buyingstore.c
parentd8864002e09274f630cfe283f2b13e70e1b2ad62 (diff)
downloadhercules-d82c06ba163ee9529358e4de83370d0b2fa77769.tar.gz
hercules-d82c06ba163ee9529358e4de83370d0b2fa77769.tar.bz2
hercules-d82c06ba163ee9529358e4de83370d0b2fa77769.tar.xz
hercules-d82c06ba163ee9529358e4de83370d0b2fa77769.zip
Update packet CZ_REQ_OPEN_BUYING_STORE.
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r--src/map/buyingstore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c
index ade2c5bf2..03a63291d 100644
--- a/src/map/buyingstore.c
+++ b/src/map/buyingstore.c
@@ -81,7 +81,7 @@ static bool buyingstore_setup(struct map_session_data *sd, unsigned char slots)
return true;
}
-static void buyingstore_create(struct map_session_data *sd, int zenylimit, unsigned char result, const char *storename, const uint8 *itemlist, unsigned int count)
+static void buyingstore_create(struct map_session_data *sd, int zenylimit, unsigned char result, const char *storename, const struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub *itemlist, unsigned int count)
{
unsigned int i, weight, listidx;
@@ -132,9 +132,9 @@ static void buyingstore_create(struct map_session_data *sd, int zenylimit, unsig
int price, idx;
struct item_data* id;
- nameid = RBUFW(itemlist,i*8+0);
- amount = RBUFW(itemlist,i*8+2);
- price = RBUFL(itemlist,i*8+4);
+ nameid = itemlist[i].itemId;
+ amount = itemlist[i].amount;
+ price = itemlist[i].price;
if( ( id = itemdb->exists(nameid) ) == NULL || amount == 0 )
{// invalid input