Skip to content

Commit 6d1012c

Browse files
committed
added if check for version in multiple packets parsing
1 parent 2bfd59b commit 6d1012c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

WowPacketParserModule.V8_0_1_27101/Parsers/MiscellaneousHandler.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ public static void HandleMultiplePackets(Packet packet)
260260
byte[] bytes = null;
261261

262262
len = packet.ReadUInt16();
263-
opcode = packet.ReadInt32();
263+
if (ClientVersion.AddedInVersion(ClientVersionBuild.V11_0_0_55666))
264+
opcode = packet.ReadInt32();
265+
else
266+
opcode = packet.ReadUInt16();
264267
bytes = packet.ReadBytes(len);
265268

266269
if (bytes == null || len == 0)

0 commit comments

Comments
 (0)