diff options
| author | Rat <gmstreetrat@gmail.com> | 2014-11-29 14:52:53 +0100 |
|---|---|---|
| committer | Rat <gmstreetrat@gmail.com> | 2014-11-29 14:52:53 +0100 |
| commit | eda9094226983fc719378af5c1eca1a7ce93428e (patch) | |
| tree | 2461148a06096691d40255452538d52e4bc8698f /src/server/shared/Packets/ByteBuffer.h | |
| parent | 8c4761e820d1185afb3d6384c47e0a53dce42fbc (diff) | |
| parent | 96f9451b850994fe2e92db43b4bc6327ae7e1734 (diff) | |
Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into Spells
Diffstat (limited to 'src/server/shared/Packets/ByteBuffer.h')
| -rw-r--r-- | src/server/shared/Packets/ByteBuffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 069b783a537..67e940e263c 100644 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -303,7 +303,7 @@ class ByteBuffer { if (size_t len = value.length()) append((uint8 const*)value.c_str(), len); - append((uint8)0); + append<uint8>(0); return *this; } @@ -311,7 +311,7 @@ class ByteBuffer { if (size_t len = (str ? strlen(str) : 0)) append((uint8 const*)str, len); - append((uint8)0); + append<uint8>(0); return *this; } @@ -475,7 +475,7 @@ class ByteBuffer void read(uint8 *dest, size_t len) { - if (_rpos + len > size()) + if (_rpos + len > size()) throw ByteBufferPositionException(false, _rpos, len, size()); ResetBitPos(); |
