From c9117721255b24d86f00b3f94c6f112fefa5bfdd Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 19 Aug 2009 17:07:21 -0500 Subject: [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 --- src/shared/ByteBuffer.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/shared/ByteBuffer.h') 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 void read_skip() { read_skip(sizeof(T)); } - template - void read_skip2() { read_skip(sizeof(T1)+sizeof(T2)); } - void read_skip(size_t skip) { if(_rpos + skip > size()) -- cgit v1.2.3