summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-19 17:55:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-19 17:55:52 +0300
commitfa378412565f98a1ce6d438425ca34b20aaf223a (patch)
tree34bf055f2b179b9d49cbe5cabd646173737a053a /src/net/tmwa
parent2ef04505f91aa7bb1629ac294e9f166280961510 (diff)
downloadmanaverse-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.gz
manaverse-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.bz2
manaverse-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.xz
manaverse-fa378412565f98a1ce6d438425ca34b20aaf223a.zip
Add static in tradehandler.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/tradehandler.cpp2
-rw-r--r--src/net/tmwa/tradehandler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp
index 4ee77a7ec..12e6b94ab 100644
--- a/src/net/tmwa/tradehandler.cpp
+++ b/src/net/tmwa/tradehandler.cpp
@@ -156,7 +156,7 @@ void TradeHandler::cancel() const
createOutPacket(CMSG_TRADE_CANCEL_REQUEST);
}
-void TradeHandler::processTradeRequest(Net::MessageIn &msg) const
+void TradeHandler::processTradeRequest(Net::MessageIn &msg)
{
processTradeRequestContinue(msg.readString(24, "name"));
}
diff --git a/src/net/tmwa/tradehandler.h b/src/net/tmwa/tradehandler.h
index 34b67cbd5..715c69838 100644
--- a/src/net/tmwa/tradehandler.h
+++ b/src/net/tmwa/tradehandler.h
@@ -55,7 +55,7 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler
void cancel() const override final;
protected:
- void processTradeRequest(Net::MessageIn &msg) const;
+ static void processTradeRequest(Net::MessageIn &msg);
static void processTradeItemAdd(Net::MessageIn &msg);