Core/Player: Actually close tickets when characters are deleted
* Solves issue with tickets being open indefinitely if characters are deleted while tickets are still open
This commit is contained in:
1 parent
e30845b587
commit
fd1a0cd4f0
1 file changed
+1
-1
@@ -4254,7 +4254,7 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
||||
// close player ticket if any
|
||||
GmTicket* ticket = sTicketMgr->GetTicketByPlayer(playerguid);
|
||||
if (ticket)
|
||||
ticket->SetClosedBy(playerguid);
|
||||
sTicketMgr->CloseTicket(ticket->GetId(), playerguid);
|
||||
|
||||
// remove from arena teams
|
||||
LeaveAllArenaTeams(playerguid);
|
||||
|
||||
Reference in new issue
Block a user