From 7e4235ac086093e6cffc10213ca41d7d059cc082 Mon Sep 17 00:00:00 2001 From: click Date: Sat, 31 Jul 2010 04:31:21 +0200 Subject: [PATCH] Core/AuctionHouse: Fix CMSG_AUCTION_LIST_ITEMS reading (pending further investigation) --HG-- branch : trunk --- .../Server/Protocol/Handlers/AuctionHouseHandler.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/server/game/Server/Protocol/Handlers/AuctionHouseHandler.cpp b/src/server/game/Server/Protocol/Handlers/AuctionHouseHandler.cpp index 8fec3b7df1d..e4252854f09 100644 --- a/src/server/game/Server/Protocol/Handlers/AuctionHouseHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/AuctionHouseHandler.cpp @@ -601,7 +601,16 @@ void WorldSession::HandleAuctionListItems(WorldPacket & recv_data) recv_data >> auctionSlotID >> auctionMainCategory >> auctionSubCategory; recv_data >> quality >> usable; - recv_data.read_skip(16); // unknown 16 bytes: 00 07 01 00 00 01 05 00 06 00 09 01 08 00 03 00 + recv_data.read_skip(); // unk + + // this block looks like it uses some lame byte packing or similar... + uint8 unkCnt; + recv_data >> unkCnt; + for (uint8 i = 0; i < unkCnt; i++) + { + recv_data.read_skip(); + recv_data.read_skip(); + } Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid,UNIT_NPC_FLAG_AUCTIONEER); if (!pCreature)