aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Tickets/TicketMgr.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-03-31 17:47:18 +0100
committerNay <dnpd.dd@gmail.com>2012-03-31 17:47:18 +0100
commit0b645a825d73f4e38d5c131c8ff8ee52aa796d2b (patch)
treece51b943e514cf33f846ba7a267553b40a859280 /src/server/game/Tickets/TicketMgr.cpp
parente3ae7ba498d3c9690f1a3ba4e4847f415debcccf (diff)
Core/DBLayer: More type fixes
Diffstat (limited to 'src/server/game/Tickets/TicketMgr.cpp')
-rwxr-xr-xsrc/server/game/Tickets/TicketMgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Tickets/TicketMgr.cpp b/src/server/game/Tickets/TicketMgr.cpp
index 930bf0d3372..68e28014319 100755
--- a/src/server/game/Tickets/TicketMgr.cpp
+++ b/src/server/game/Tickets/TicketMgr.cpp
@@ -65,6 +65,8 @@ GmTicket::~GmTicket() { }
bool GmTicket::LoadFromDB(Field* fields)
{
+ // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+ // ticketId, guid, name, message, createTime, mapId, posX, posY, posZ, lastModifiedTime, closedBy, assignedTo, comment, completed, escalated, viewed
uint8 index = 0;
_id = fields[ index].GetUInt32();
_playerGuid = MAKE_NEW_GUID(fields[++index].GetUInt32(), 0, HIGHGUID_PLAYER);
@@ -87,6 +89,8 @@ bool GmTicket::LoadFromDB(Field* fields)
void GmTicket::SaveToDB(SQLTransaction& trans) const
{
+ // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+ // ticketId, guid, name, message, createTime, mapId, posX, posY, posZ, lastModifiedTime, closedBy, assignedTo, comment, completed, escalated, viewed
uint8 index = 0;
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_REP_GM_TICKET);
stmt->setUInt32( index, _id);