From 9be90b76adb1518c4ffe0e365a18c5afcc3158f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Dec 2014 01:27:45 +0300 Subject: Add item type to item object. --- src/net/eathena/markethandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/markethandler.cpp') diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp index fbd0e0987..d7ceeabe4 100644 --- a/src/net/eathena/markethandler.cpp +++ b/src/net/eathena/markethandler.cpp @@ -82,12 +82,12 @@ void MarketHandler::processMarketOpen(Net::MessageIn &msg) for (int f = 0; f < len; f ++) { const int itemId = msg.readInt16("item id"); - msg.readUInt8("type"); + const int type = msg.readUInt8("type"); const int value = msg.readInt32("price"); const int amount = msg.readInt32("amount"); msg.readInt16("view"); const unsigned char color = 1; - mBuyDialog->addItem(itemId, color, amount, value); + mBuyDialog->addItem(itemId, type, color, amount, value); } } -- cgit v1.2.3-60-g2f50