fix(Core/ObjectAcessor): Fix crash caused by forced character renames (#13527)
This commit is contained in:
parent
c54d56c7d0
commit
e55d7cb951
3 changed files with 15 additions and 0 deletions
|
|
@ -381,6 +381,8 @@ public:
|
|||
{
|
||||
target->SetName(newName);
|
||||
|
||||
ObjectAccessor::UpdatePlayerNameMapReference(player->GetName(), target);
|
||||
|
||||
if (WorldSession* session = target->GetSession())
|
||||
session->KickPlayer("HandleCharacterRenameCommand GM Command renaming character");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue