summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 19:35:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 19:35:20 +0300
commit284561a7be192b730fb717ee7903b92a2b1d7dc3 (patch)
tree5c6e7f677aebfe137dcd820e1250fe1e453e6fc2 /src/net/tmwa/gamehandler.cpp
parentbeb4ebc9d31b17c9bcfcee17d94fe8a71446a5a6 (diff)
downloadmv-284561a7be192b730fb717ee7903b92a2b1d7dc3.tar.gz
mv-284561a7be192b730fb717ee7903b92a2b1d7dc3.tar.bz2
mv-284561a7be192b730fb717ee7903b92a2b1d7dc3.tar.xz
mv-284561a7be192b730fb717ee7903b92a2b1d7dc3.zip
Replace missing MessageOut creation to createOutPacket.
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r--src/net/tmwa/gamehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index 65ff13fb8..7a24038cc 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -159,8 +159,8 @@ void GameHandler::quit() const
void GameHandler::ping(const int tick) const
{
- MessageOut msg(CMSG_MAP_PING);
- msg.writeInt32(tick, "tick");
+ createOutPacket(CMSG_MAP_PING);
+ outMsg.writeInt32(tick, "tick");
}
void GameHandler::disconnect2() const