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:
Nyeriah authored and Aokromes committed 2016-07-30 12:05:27 +02:00
1 parent e30845b587
commit fd1a0cd4f0
1 file changed
+1 -1
+1 -1
View File
@@ -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);