Core/PacketIO: Update opcodes for 11.0.5
This commit is contained in:
@@ -137,7 +137,7 @@ void PacketLog::LogPacket(WorldPacket const& packet, Direction direction, boost:
|
||||
header.OptionalData.SocketPort = port;
|
||||
std::size_t size = packet.size();
|
||||
if (direction == CLIENT_TO_SERVER)
|
||||
size -= 2;
|
||||
size -= 4;
|
||||
|
||||
header.Length = size + sizeof(header.Opcode);
|
||||
header.Opcode = packet.GetOpcode();
|
||||
@@ -147,7 +147,7 @@ void PacketLog::LogPacket(WorldPacket const& packet, Direction direction, boost:
|
||||
{
|
||||
uint8 const* data = packet.contents();
|
||||
if (direction == CLIENT_TO_SERVER)
|
||||
data += 2;
|
||||
data += 4;
|
||||
fwrite(data, 1, size, _file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user