diff options
author | megamage <none@none> | 2009-06-06 20:23:56 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-06 20:23:56 -0500 |
commit | 9f9a9f82073e712d38d1dae3f083af25c0f7e7c6 (patch) | |
tree | 0f52f175be355135cf49525907044c3b23e07b6b /src/shared | |
parent | 1c1ead52dd85c51538ac5f26846ba67f951ba31b (diff) |
[7968] In packet compression use real writed data size. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/ByteBuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h index f11746b8ce5..7ff6d32fd12 100644 --- a/src/shared/ByteBuffer.h +++ b/src/shared/ByteBuffer.h @@ -311,7 +311,7 @@ class ByteBuffer } void append(const ByteBuffer& buffer) { - if(buffer.size()) append(buffer.contents(),buffer.wpos()); + if(buffer.wpos()) append(buffer.contents(),buffer.wpos()); } void appendPackGUID(uint64 guid) |