* Correctly update ticket status in database when closing via GM command.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -455,8 +455,8 @@ bool ChatHandler::HandleGMTicketCloseByIdCommand(const char* args)
|
||||
ss << PGetParseString(LANG_COMMAND_TICKETLISTNAME, ticket->name.c_str());
|
||||
ss << PGetParseString(LANG_COMMAND_TICKETCLOSED, m_session->GetPlayer()->GetName());
|
||||
SendGlobalGMSysMessage(ss.str().c_str());
|
||||
objmgr.RemoveGMTicket(ticket->guid, m_session->GetPlayer()->GetGUID());
|
||||
Player *plr = objmgr.GetPlayer(ticket->playerGuid);
|
||||
objmgr.RemoveGMTicket(ticket, m_session->GetPlayer()->GetGUID());
|
||||
|
||||
if(!plr || !plr->IsInWorld())
|
||||
return true;
|
||||
|
||||
@@ -8478,7 +8478,8 @@ void ObjectMgr::RemoveGMTicket(GM_Ticket *ticket, int64 source, bool permanently
|
||||
ticket = NULL;
|
||||
return;
|
||||
}
|
||||
(*i)->closed = source;
|
||||
(*i)->closed = source;
|
||||
_AddOrUpdateGMTicket((*i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user