summaryrefslogtreecommitdiff
path: root/src/net/eathena/messageout.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-26 00:53:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-26 00:53:39 +0300
commitebf2a7a998e6825e8dce3b626704eb408fe30f12 (patch)
tree269ae1f207339636d1385b39cbca680cee0f0dd7 /src/net/eathena/messageout.cpp
parenta0e63acd1443caa477ac5f7954557a17949c3675 (diff)
downloadplus-ebf2a7a998e6825e8dce3b626704eb408fe30f12.tar.gz
plus-ebf2a7a998e6825e8dce3b626704eb408fe30f12.tar.bz2
plus-ebf2a7a998e6825e8dce3b626704eb408fe30f12.tar.xz
plus-ebf2a7a998e6825e8dce3b626704eb408fe30f12.zip
Show in debug log last packet sent buffer position.
Diffstat (limited to 'src/net/eathena/messageout.cpp')
-rw-r--r--src/net/eathena/messageout.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp
index 086d9f446..78a242851 100644
--- a/src/net/eathena/messageout.cpp
+++ b/src/net/eathena/messageout.cpp
@@ -45,6 +45,11 @@ MessageOut::MessageOut(const int16_t id) :
mData = mNetwork->mOutBuffer + CAST_SIZE(mNetwork->mOutSize);
}
+MessageOut::~MessageOut()
+{
+ DEBUGLOG2("writeEnd: ", mPos, "position after end of packet");
+}
+
void MessageOut::expand(const size_t bytes) const
{
mNetwork->mOutSize += CAST_U32(bytes);