diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-02 17:09:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-02 17:09:48 +0300 |
commit | 270b231714d47afa5f3caa89f4ff2415d394c1fa (patch) | |
tree | 6149aef26922d5071e0ab9d7f036387d29b6c13b /src/net/eathena | |
parent | 38bed185876ab4e639412392005c0fe01e05d4f2 (diff) | |
download | mv-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.gz mv-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.bz2 mv-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.xz mv-270b231714d47afa5f3caa89f4ff2415d394c1fa.zip |
Fix code style.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/markethandler.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index ba6a5455f..c6191c512 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -105,8 +105,8 @@ void CashShopHandler::buyItem(const int points, outMsg.writeInt16(10 + 4, "len"); outMsg.writeInt32(points, "points"); outMsg.writeInt16(1, "count"); - outMsg.writeInt16(amount, "amount"); - outMsg.writeInt16(itemId, "item id"); + outMsg.writeInt16(static_cast<int16_t>(amount), "amount"); + outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); } } // namespace EAthena diff --git a/src/net/eathena/markethandler.h b/src/net/eathena/markethandler.h index c910d6fdc..42a4bcac0 100644 --- a/src/net/eathena/markethandler.h +++ b/src/net/eathena/markethandler.h @@ -47,9 +47,9 @@ class MarketHandler final : public MessageHandler, const int amount) const override final; protected: - void processMarketOpen(Net::MessageIn &msg); + static void processMarketOpen(Net::MessageIn &msg); - void processMarketBuyAck(Net::MessageIn &msg); + static void processMarketBuyAck(Net::MessageIn &msg); static BuyDialog *mBuyDialog; }; |