mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 08:30:13 +00:00
Fix classic SMSG_MONSTER_MOVE parsing using wrong WotLK format
handleMonsterMove called MonsterMoveParser::parse() directly (WotLK format with extra uint8 after PackedGuid) instead of going through the polymorphic packetParsers_->parseMonsterMove(). Added parseVanilla override to ClassicPacketParsers so classic/turtle use the correct vanilla format.
This commit is contained in:
parent
630c38b1d2
commit
70e579157d
2 changed files with 5 additions and 2 deletions
|
|
@ -7830,12 +7830,12 @@ void GameHandler::handleMonsterMove(network::Packet& packet) {
|
|||
}
|
||||
|
||||
network::Packet decompPacket(packet.getOpcode(), parseBytes);
|
||||
if (!MonsterMoveParser::parseVanilla(decompPacket, data)) {
|
||||
if (!packetParsers_->parseMonsterMove(decompPacket, data)) {
|
||||
LOG_WARNING("Failed to parse vanilla SMSG_MONSTER_MOVE (decompressed ",
|
||||
destLen, " bytes, parseBytes ", parseBytes.size(), " bytes)");
|
||||
return;
|
||||
}
|
||||
} else if (!MonsterMoveParser::parse(packet, data)) {
|
||||
} else if (!packetParsers_->parseMonsterMove(packet, data)) {
|
||||
LOG_WARNING("Failed to parse SMSG_MONSTER_MOVE");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue