summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-14 21:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-14 21:19:02 +0300
commitc26624e72bb8d60bc1fa13cd5a178e06579e49a4 (patch)
treef667c9f6aec11297e3ccb3c240e46df6842250e2 /src/net
parent53c24ef91d7980f38defc705140cd2ab68e9c0ff (diff)
downloadmv-c26624e72bb8d60bc1fa13cd5a178e06579e49a4.tar.gz
mv-c26624e72bb8d60bc1fa13cd5a178e06579e49a4.tar.bz2
mv-c26624e72bb8d60bc1fa13cd5a178e06579e49a4.tar.xz
mv-c26624e72bb8d60bc1fa13cd5a178e06579e49a4.zip
eathena: fix buying store packages.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp5
1 files changed, 3 insertions, 2 deletions
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<ShopItem*> &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");