mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Player): close all character tickets when delete (#1565)
This commit is contained in:
committed by
Francesco Borzì
parent
1d0a8dbba0
commit
26ae2ce2d6
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user