SQL: Characters db storage type cleanup No. 5

This commit is contained in:
leak
2011-01-20 00:08:45 +01:00
parent a7df9ddff1
commit a486eb0c2f
16 changed files with 160 additions and 83 deletions
+6 -6
View File
@@ -66,17 +66,17 @@ void TicketMgr::LoadGMTickets()
{
Field *fields = result->Fetch();
GM_Ticket *ticket = new GM_Ticket;
ticket->guid = fields[0].GetUInt64();
ticket->playerGuid = fields[1].GetUInt64();
ticket->guid = fields[0].GetUInt32();
ticket->playerGuid = fields[1].GetUInt32();
ticket->name = fields[2].GetString();
ticket->message = fields[3].GetString();
ticket->createtime = fields[4].GetUInt64();
ticket->createtime = fields[4].GetUInt32();
ticket->map = fields[5].GetUInt32();
ticket->pos_x = fields[6].GetFloat();
ticket->pos_y = fields[7].GetFloat();
ticket->pos_z = fields[8].GetFloat();
ticket->timestamp = fields[9].GetUInt64();
ticket->closed = fields[10].GetUInt64();
ticket->timestamp = fields[9].GetUInt32();
ticket->closed = fields[10].GetInt32();
if (ticket->closed == 0)
m_openTickets++;
@@ -111,7 +111,7 @@ void TicketMgr::LoadGMSurveys()
if (result)
{
Field *fields = result->Fetch();
m_GMSurveyID = fields[0].GetUInt64();
m_GMSurveyID = fields[0].GetUInt32();
}
else
m_GMSurveyID = 0;