summaryrefslogtreecommitdiff
path: root/src/net/tmwa/messageout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/messageout.cpp')
-rw-r--r--src/net/tmwa/messageout.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index ae5f6dba..19f5ee49 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/messageout.cpp
@@ -31,12 +31,9 @@
namespace TmwAthena {
MessageOut::MessageOut(uint16_t id):
- mDataSize(0),
- mPos(0)
+ mNetwork(TmwAthena::Network::instance()),
+ mData(mNetwork->mOutBuffer + mNetwork->mOutSize)
{
- mNetwork = TmwAthena::Network::instance();
- mData = mNetwork->mOutBuffer + mNetwork->mOutSize;
-
writeInt16(id);
}