aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Tickets
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-24 19:56:17 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-24 19:56:17 +0200
commit9fc0b76cd182444bac28591204ec1c5b01475568 (patch)
treeb6cd3ec1d30dcf974f75571e97304018ea88e02a /src/server/game/Tickets
parent6cb52fe4e82c3b53a025f0463c0023cd1cd86ea5 (diff)
Core/Entities: Fourth part of converting int to bigint guids in database
Diffstat (limited to 'src/server/game/Tickets')
-rw-r--r--src/server/game/Tickets/TicketMgr.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Tickets/TicketMgr.cpp b/src/server/game/Tickets/TicketMgr.cpp
index 7611fb8ce2d..4877ec27a20 100644
--- a/src/server/game/Tickets/TicketMgr.cpp
+++ b/src/server/game/Tickets/TicketMgr.cpp
@@ -53,7 +53,7 @@ bool GmTicket::LoadFromDB(Field* fields)
// ticketId, guid, name, message, createTime, mapId, posX, posY, posZ, lastModifiedTime, closedBy, assignedTo, comment, response, completed, escalated, viewed, haveTicket
uint8 index = 0;
_id = fields[ index].GetUInt32();
- _playerGuid = ObjectGuid(HIGHGUID_PLAYER, fields[++index].GetUInt32());
+ _playerGuid = ObjectGuid(HIGHGUID_PLAYER, fields[++index].GetUInt64());
_playerName = fields[++index].GetString();
_message = fields[++index].GetString();
_createTime = fields[++index].GetUInt32();
@@ -62,8 +62,8 @@ bool GmTicket::LoadFromDB(Field* fields)
_posY = fields[++index].GetFloat();
_posZ = fields[++index].GetFloat();
_lastModifiedTime = fields[++index].GetUInt32();
- _closedBy = ObjectGuid(uint64(0), uint64(fields[++index].GetInt32()));
- _assignedTo = ObjectGuid(HIGHGUID_PLAYER, fields[++index].GetUInt32());
+ _closedBy = ObjectGuid(uint64(0), uint64(fields[++index].GetInt64()));
+ _assignedTo = ObjectGuid(HIGHGUID_PLAYER, fields[++index].GetUInt64());
_comment = fields[++index].GetString();
_response = fields[++index].GetString();
_completed = fields[++index].GetBool();
@@ -80,7 +80,7 @@ void GmTicket::SaveToDB(SQLTransaction& trans) const
uint8 index = 0;
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_REP_GM_TICKET);
stmt->setUInt32( index, _id);
- stmt->setUInt32(++index, _playerGuid.GetCounter());
+ stmt->setUInt64(++index, _playerGuid.GetCounter());
stmt->setString(++index, _playerName);
stmt->setString(++index, _message);
stmt->setUInt32(++index, uint32(_createTime));
@@ -89,8 +89,8 @@ void GmTicket::SaveToDB(SQLTransaction& trans) const
stmt->setFloat (++index, _posY);
stmt->setFloat (++index, _posZ);
stmt->setUInt32(++index, uint32(_lastModifiedTime));
- stmt->setInt32 (++index, int32(_closedBy.GetCounter()));
- stmt->setUInt32(++index, _assignedTo.GetCounter());
+ stmt->setInt64 (++index, int64(_closedBy.GetCounter()));
+ stmt->setUInt64(++index, _assignedTo.GetCounter());
stmt->setString(++index, _comment);
stmt->setString(++index, _response);
stmt->setBool (++index, _completed);