mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-05 00:33:51 +00:00
Fix SMSG_RESUME_CAST_BAR: separate from unrelated opcodes in fallthrough group
SMSG_LOOT_LIST, SMSG_COMPLAIN_RESULT, SMSG_ITEM_REFUND_INFO_RESPONSE, and SMSG_ITEM_ENCHANT_TIME_UPDATE were incorrectly falling through to the SMSG_RESUME_CAST_BAR handler, causing those packets to be parsed as cast bar resume data with a completely different wire format.
This commit is contained in:
parent
3f64f81ec0
commit
a49c013c89
1 changed files with 4 additions and 0 deletions
|
|
@ -4730,6 +4730,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
case Opcode::SMSG_ITEM_REFUND_INFO_RESPONSE:
|
case Opcode::SMSG_ITEM_REFUND_INFO_RESPONSE:
|
||||||
case Opcode::SMSG_ITEM_ENCHANT_TIME_UPDATE:
|
case Opcode::SMSG_ITEM_ENCHANT_TIME_UPDATE:
|
||||||
case Opcode::SMSG_LOOT_LIST:
|
case Opcode::SMSG_LOOT_LIST:
|
||||||
|
// Consume — not yet processed
|
||||||
|
packet.setReadPos(packet.getSize());
|
||||||
|
break;
|
||||||
|
|
||||||
case Opcode::SMSG_RESUME_CAST_BAR: {
|
case Opcode::SMSG_RESUME_CAST_BAR: {
|
||||||
// packed_guid caster + packed_guid target + uint32 spellId
|
// packed_guid caster + packed_guid target + uint32 spellId
|
||||||
// + uint32 remainingMs + uint32 totalMs + uint8 schoolMask
|
// + uint32 remainingMs + uint32 totalMs + uint8 schoolMask
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue