aboutsummaryrefslogtreecommitdiff
path: root/src/shared/ByteBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/ByteBuffer.h')
-rw-r--r--src/shared/ByteBuffer.h2
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)