mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Fixed issues found by coverity
CID 1374575, 1374574, 1374573, 1374572, 1374563, 1374556
This commit is contained in:
@@ -604,8 +604,8 @@ class TC_SHARED_API ByteBuffer
|
||||
|
||||
void append(const ByteBuffer& buffer)
|
||||
{
|
||||
if (buffer.wpos())
|
||||
append(buffer.contents(), buffer.wpos());
|
||||
if (!buffer.empty())
|
||||
append(buffer.contents(), buffer.size());
|
||||
}
|
||||
|
||||
// can be used in SMSG_MONSTER_MOVE opcode
|
||||
|
||||
Reference in New Issue
Block a user