mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix opcode handler grouping: separate SET_PROFICIENCY/ENERGIZE from ACTION_BUTTONS
SMSG_SPELLENERGIZELOG, SMSG_ENVIRONMENTAL_DAMAGE_LOG, and SMSG_SET_PROFICIENCY were incorrectly grouped with the SMSG_ACTION_BUTTONS case block introduced in the previous commit, causing their payloads to be misinterpreted as action button data which could corrupt the action bar. Each now safely consumes its packet.
This commit is contained in:
parent
52507b1f74
commit
22bc5954d7
1 changed files with 3 additions and 0 deletions
|
|
@ -3070,6 +3070,9 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
case Opcode::SMSG_SPELLENERGIZELOG:
|
||||
case Opcode::SMSG_ENVIRONMENTAL_DAMAGE_LOG:
|
||||
case Opcode::SMSG_SET_PROFICIENCY:
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
|
||||
case Opcode::SMSG_ACTION_BUTTONS: {
|
||||
// uint8 mode (0=initial, 1=update) + 144 × uint32 packed buttons
|
||||
// packed: bits 0-23 = actionId, bits 24-31 = type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue