feat(Core/Player): delete character cache in Player::DeleteFromDB() (#14388)

This commit is contained in:
Axel Cocat
2022-12-28 23:22:28 +01:00
committed by GitHub
parent 2850052f3e
commit 97b5906124
2 changed files with 8 additions and 1 deletions

View File

@@ -658,7 +658,6 @@ void WorldSession::HandleCharDeleteOpcode(WorldPacket& recvData)
sCalendarMgr->RemoveAllPlayerEventsAndInvites(guid);
Player::DeleteFromDB(guid.GetCounter(), GetAccountId(), true, false);
sCharacterCache->DeleteCharacterCacheEntry(guid, name);
SendCharDelete(CHAR_DELETE_SUCCESS);
}