Core/PacketIO: Fixed loading PreloadPos in character enum packet (#28285)

This commit is contained in:
DeadMouse
2022-09-24 23:57:12 +02:00
committed by GitHub
parent bc18b72d80
commit 5c5446d63e
@@ -84,7 +84,7 @@ EnumCharactersResult::CharacterInfo::CharacterInfo(Field* fields)
ExperienceLevel = fields[5].GetUInt8();
ZoneID = int32(fields[6].GetUInt16());
MapID = int32(fields[7].GetUInt16());
PreloadPos = Position(fields[8].GetFloat(), fields[8].GetFloat(), fields[10].GetFloat());
PreloadPos = Position(fields[8].GetFloat(), fields[9].GetFloat(), fields[10].GetFloat());
if (ObjectGuid::LowType guildId = fields[11].GetUInt64())
GuildGUID = ObjectGuid::Create<HighGuid::Guild>(guildId);