* Fix .ticket delete and .ticket viewid
--HG-- branch : trunk
This commit is contained in:
1 parent
3c40065564
commit
b0e42c0256
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -370,7 +370,7 @@ bool ChatHandler::HandleGMTicketGetByIdCommand(const char* args)
|
||||
|
||||
uint64 tguid = atoi(args);
|
||||
GM_Ticket *ticket = objmgr.GetGMTicket(tguid);
|
||||
if(!ticket)
|
||||
if(!ticket || ticket->closed != 0)
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_TICKETNOTEXIST);
|
||||
return true;
|
||||
|
||||
@@ -845,7 +845,7 @@ class ObjectMgr
|
||||
GM_Ticket *GetGMTicket(uint64 ticketGuid)
|
||||
{
|
||||
for(GmTicketList::const_iterator i = m_GMTicketList.begin(); i != m_GMTicketList.end(); ++i)
|
||||
if((*i) && (*i)->guid == ticketGuid && (*i)->closed == 0)
|
||||
if((*i) && (*i)->guid == ticketGuid)
|
||||
return (*i);
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user