fix(Core/Characters): Correctly update char count on realm selection (#14685)

This commit is contained in:
Kitzunu
2023-01-15 15:44:17 +01:00
committed by GitHub
parent 3671a6593e
commit 12f4a28b01

View File

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