fix(Core/Player): close all character tickets when delete (#1565)

This commit is contained in:
Viste(Кирилл)
2019-03-11 23:46:57 +03:00
committed by Francesco Borzì
parent 1d0a8dbba0
commit 26ae2ce2d6

View File

@@ -4725,7 +4725,7 @@ void Player::DeleteFromDB(uint64 playerguid, uint32 accountId, bool updateRealmC
// close player ticket if any // close player ticket if any
GmTicket* ticket = sTicketMgr->GetTicketByPlayer(playerguid); GmTicket* ticket = sTicketMgr->GetTicketByPlayer(playerguid);
if (ticket) if (ticket)
ticket->SetClosedBy(playerguid); sTicketMgr->CloseTicket(ticket->GetId(), playerguid);
// remove from group // remove from group
if (uint32 groupId = GetGroupIdFromStorage(guid)) if (uint32 groupId = GetGroupIdFromStorage(guid))