aboutsummaryrefslogtreecommitdiff
path: root/src/shared/ByteBuffer.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-19 17:07:21 -0500
committermegamage <none@none>2009-08-19 17:07:21 -0500
commitc9117721255b24d86f00b3f94c6f112fefa5bfdd (patch)
tree8daf9665b3142c4974c90e38414ae7669db694cc /src/shared/ByteBuffer.h
parentf5085b2f39c91ed0103c79d95f8d18a4ef2a6371 (diff)
[8389] Implement check really read received packet size and warning it not all data read. Author: VladimirMangos
* This let more easy catch packet structure chnages at client switch. * Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS * Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM * Added read data amount fixes for some other packets. Thanks to TOM_RUS in help check correct packets structure. Note: not all packets possible fixed. Please report for not fixed cases at errors: "opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)" --HG-- branch : trunk
Diffstat (limited to 'src/shared/ByteBuffer.h')
-rw-r--r--src/shared/ByteBuffer.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h
index 89b049990e8..b22dbdee729 100644
--- a/src/shared/ByteBuffer.h
+++ b/src/shared/ByteBuffer.h
@@ -265,9 +265,6 @@ class ByteBuffer
template<typename T>
void read_skip() { read_skip(sizeof(T)); }
- template<typename T1, typename T2>
- void read_skip2() { read_skip(sizeof(T1)+sizeof(T2)); }
-
void read_skip(size_t skip)
{
if(_rpos + skip > size())