fix(Core/Handlers): Correctly updating faction and race change on packet. (#10199)
Fixes #10008
This commit is contained in:
@@ -2126,7 +2126,7 @@ void WorldSession::HandleCharFactionOrRaceChangeCallback(std::shared_ptr<Charact
|
|||||||
GetAccountId(), GetRemoteAddress().c_str(), playerData->Name.c_str(), lowGuid, factionChangeInfo->Name.c_str());
|
GetAccountId(), GetRemoteAddress().c_str(), playerData->Name.c_str(), lowGuid, factionChangeInfo->Name.c_str());
|
||||||
|
|
||||||
// xinef: update global data
|
// xinef: update global data
|
||||||
sCharacterCache->UpdateCharacterData(factionChangeInfo->Guid, factionChangeInfo->Name);
|
sCharacterCache->UpdateCharacterData(factionChangeInfo->Guid, factionChangeInfo->Name, factionChangeInfo->Gender, factionChangeInfo->Race);
|
||||||
|
|
||||||
if (oldRace != factionChangeInfo->Race)
|
if (oldRace != factionChangeInfo->Race)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user