From c26624e72bb8d60bc1fa13cd5a178e06579e49a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Feb 2015 21:19:02 +0300 Subject: eathena: fix buying store packages. --- src/net/eathena/buyingstorehandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 672c68da3..649b2b39e 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -121,11 +121,11 @@ void BuyingStoreHandler::processBuyingStoreCreateFailed(Net::MessageIn &msg) const int weight = msg.readInt32("weight"); switch (result) { - case 0: + case 1: default: NotifyManager::notify(NotifyTypes::BUYING_STORE_CREATE_FAILED); break; - case 1: + case 2: NotifyManager::notify( NotifyTypes::BUYING_STORE_CREATE_FAILED_WEIGHT, weight); @@ -240,6 +240,7 @@ void BuyingStoreHandler::create(const std::string &name, std::vector &items) const { createOutPacket(CMSG_BUYINGSTORE_CREATE); + outMsg.writeInt16(89 + items.size() * 8, "len"); outMsg.writeInt32(maxMoney, "limit money"); outMsg.writeInt8(flag, "flag"); outMsg.writeString(name, 80, "store name"); -- cgit v1.2.3-60-g2f50