Core/PacketIO: Fixed packet structres changed after build 54449

This commit is contained in:
Shauren
2024-06-26 19:54:31 +02:00
parent 4b4c52112d
commit f20fa7aeb5
3 changed files with 6 additions and 4 deletions

View File

@@ -276,6 +276,7 @@ ByteBuffer& operator<<(ByteBuffer& data, EnumCharactersResult::RaceUnlock const&
data.WriteBit(raceUnlock.HasAchievement);
data.WriteBit(raceUnlock.HasHeritageArmor);
data.WriteBit(raceUnlock.IsLocked);
data.WriteBit(raceUnlock.Unused1027);
data.FlushBits();
return data;

View File

@@ -172,7 +172,7 @@ namespace WorldPackets
uint8 Subclass = 0;
};
std::array<VisualItemInfo, 35> VisualItems = { };
std::array<VisualItemInfo, 19> VisualItems = { };
std::vector<std::string> MailSenders;
std::vector<uint32> MailSenderTypes;
bool RpeResetAvailable = false;
@@ -187,6 +187,7 @@ namespace WorldPackets
bool HasAchievement = false;
bool HasHeritageArmor = false;
bool IsLocked = false;
bool Unused1027 = false;
};
struct UnlockedConditionalAppearance

View File

@@ -47,7 +47,7 @@ void WorldPackets::Chat::ChatMessageWhisper::Read()
_worldPacket >> TargetGUID;
_worldPacket >> TargetVirtualRealmAddress;
uint32 targetLen = _worldPacket.ReadBits(6);
uint32 targetLen = _worldPacket.ReadBits(9);
uint32 textLen = _worldPacket.ReadBits(11);
if (targetLen > 1)
@@ -100,8 +100,8 @@ void WorldPackets::Chat::ChatAddonMessageTargeted::Read()
_worldPacket >> PlayerGUID;
_worldPacket >> PlayerVirtualRealmAddress;
uint32 playerNameLength = _worldPacket.ReadBits(6);
uint32 channelNameLength = _worldPacket.ReadBits(6);
uint32 playerNameLength = _worldPacket.ReadBits(9);
uint32 channelNameLength = _worldPacket.ReadBits(8);
if (playerNameLength > 1)
{