summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
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