fix(Core/Handlers): Correctly updating faction and race change on packet. (#10199)

Fixes #10008
This commit is contained in:
UltraNix 2022-01-16 13:42:01 +01:00 committed by GitHub
parent 124ea8a1e7
commit a97719fe23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2126,7 +2126,7 @@ void WorldSession::HandleCharFactionOrRaceChangeCallback(std::shared_ptr<Charact
GetAccountId(), GetRemoteAddress().c_str(), playerData->Name.c_str(), lowGuid, factionChangeInfo->Name.c_str());
// xinef: update global data
sCharacterCache->UpdateCharacterData(factionChangeInfo->Guid, factionChangeInfo->Name);
sCharacterCache->UpdateCharacterData(factionChangeInfo->Guid, factionChangeInfo->Name, factionChangeInfo->Gender, factionChangeInfo->Race);
if (oldRace != factionChangeInfo->Race)
{