mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/PacketIO: Add missing ByteBuffer operator overload
This commit is contained in:
@@ -141,6 +141,12 @@ class TC_SHARED_API ByteBuffer
|
||||
put(pos, (uint8 *)&value, sizeof(value));
|
||||
}
|
||||
|
||||
ByteBuffer& operator<<(bool value)
|
||||
{
|
||||
append<uint8>(value ? 1 : 0);
|
||||
return *this;
|
||||
}
|
||||
|
||||
ByteBuffer &operator<<(uint8 value)
|
||||
{
|
||||
append<uint8>(value);
|
||||
|
||||
Reference in New Issue
Block a user