Core/PacketIO: Updated account data packets to 9.1.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/966ae04f02608a42d3903b63772c07f5e83b81c5)
This commit is contained in:
hondacrx
2021-11-07 17:08:15 -05:00
parent bbb4f33e16
commit db8a22ac8a
2 changed files with 11 additions and 6 deletions
@@ -58,7 +58,7 @@ namespace Game.Networking.Packets
public override void Read()
{
PlayerGuid = _worldPacket.ReadPackedGuid();
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
}
public ObjectGuid PlayerGuid;
@@ -74,7 +74,7 @@ namespace Game.Networking.Packets
_worldPacket.WritePackedGuid(Player);
_worldPacket.WriteInt64(Time);
_worldPacket.WriteUInt32(Size);
_worldPacket.WriteBits(DataType, 3);
_worldPacket.WriteBits(DataType, 4);
if (CompressedData == null)
_worldPacket.WriteUInt32(0);
@@ -102,7 +102,7 @@ namespace Game.Networking.Packets
PlayerGuid = _worldPacket.ReadPackedGuid();
Time = _worldPacket.ReadInt64();
Size = _worldPacket.ReadUInt32();
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
uint compressedSize = _worldPacket.ReadUInt32();
if (compressedSize != 0)