diff options
author | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
commit | 2cf1a3be1b310feafc43781ab9178f0c1f35d352 (patch) | |
tree | 8c028b01c102bba566ebb32c8014ab19eba8f46a /src/game/TicketMgr.cpp | |
parent | 8739ded05dbf68486551531024f1ad8ad7b389cf (diff) | |
parent | c5dfe7dac27a0441192af758dc55e6c71c83ccb4 (diff) |
*Update to Trinity 878.
--HG--
branch : trunk
Diffstat (limited to 'src/game/TicketMgr.cpp')
-rw-r--r-- | src/game/TicketMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |