From d64b239db6230c2d73eab87cef614e2df080dcb2 Mon Sep 17 00:00:00 2001 From: Paradox Date: Sat, 17 Jan 2009 10:47:26 -0500 Subject: fixes for the ticket system --HG-- branch : trunk --- src/game/TicketMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/TicketMgr.cpp') diff --git a/src/game/TicketMgr.cpp b/src/game/TicketMgr.cpp index 1e28c2a2ec1..111e1ed27ad 100644 --- a/src/game/TicketMgr.cpp +++ b/src/game/TicketMgr.cpp @@ -111,7 +111,7 @@ void TicketMgr::LoadGMTickets() InitTicketID(); // Delete all out of object holder GM_TicketList.clear(); - QueryResult *result = CharacterDatabase.Query( "SELECT `guid`, `playerGuid`, `name`, `message`, `timestamp`, `closed`, `assignedto`, `comment` FROM `gm_tickets` WHERE `closed` = '0'" ); + QueryResult *result = CharacterDatabase.Query( "SELECT `guid`, `playerGuid`, `name`, `message`, `timestamp`, `closed`, `assignedto`, `comment` FROM `gm_tickets`" ); GM_Ticket *ticket; if(!result) @@ -197,7 +197,7 @@ void TicketMgr::InitTicketID() QueryResult *result = CharacterDatabase.Query("SELECT MAX(guid) FROM gm_tickets"); if(result) { - m_ticketid = result->Fetch()[0].GetUInt64() + 1; + m_ticketid = result->Fetch()[0].GetUInt64(); delete result; } } -- cgit v1.2.3