aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-08-23 16:44:56 +0200
committerShauren <shauren.trinity@gmail.com>2015-08-23 16:44:56 +0200
commit2b8d77cdf2b6d6c0ea78c4c1681cde0c61f542fc (patch)
tree64d4f2bee219a2cd4e8d3006f6524a5422a52aff
parentbc54df6ea537ae1e28021b300e253bf919bfd6da (diff)
Core/SupportMgr: Fixed field type mismatches for tickets
-rw-r--r--src/server/game/Support/SupportMgr.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Support/SupportMgr.cpp b/src/server/game/Support/SupportMgr.cpp
index 43b754575ca..af6c2dce5c1 100644
--- a/src/server/game/Support/SupportMgr.cpp
+++ b/src/server/game/Support/SupportMgr.cpp
@@ -67,7 +67,7 @@ void BugTicket::LoadFromDB(Field* fields)
_playerGuid = ObjectGuid::Create<HighGuid::Player>(fields[++idx].GetUInt64());
_note = fields[++idx].GetString();
_createTime = fields[++idx].GetUInt32();
- _mapId = fields[++idx].GetUInt32();
+ _mapId = fields[++idx].GetUInt16();
_pos.x = fields[++idx].GetFloat();
_pos.y = fields[++idx].GetFloat();
_pos.z = fields[++idx].GetFloat();
@@ -97,7 +97,7 @@ void BugTicket::SaveToDB() const
stmt->setUInt32(idx, _id);
stmt->setUInt64(++idx, _playerGuid.GetCounter());
stmt->setString(++idx, _note);
- stmt->setUInt32(++idx, _mapId);
+ stmt->setUInt16(++idx, _mapId);
stmt->setFloat(++idx, _pos.x);
stmt->setFloat(++idx, _pos.y);
stmt->setFloat(++idx, _pos.z);
@@ -153,7 +153,7 @@ void ComplaintTicket::LoadFromDB(Field* fields)
_playerGuid = ObjectGuid::Create<HighGuid::Player>(fields[++idx].GetUInt64());
_note = fields[++idx].GetString();
_createTime = fields[++idx].GetUInt32();
- _mapId = fields[++idx].GetUInt32();
+ _mapId = fields[++idx].GetUInt16();
_pos.x = fields[++idx].GetFloat();
_pos.y = fields[++idx].GetFloat();
_pos.z = fields[++idx].GetFloat();
@@ -195,7 +195,7 @@ void ComplaintTicket::SaveToDB() const
stmt->setUInt32(idx, _id);
stmt->setUInt64(++idx, _playerGuid.GetCounter());
stmt->setString(++idx, _note);
- stmt->setUInt32(++idx, _mapId);
+ stmt->setUInt16(++idx, _mapId);
stmt->setFloat(++idx, _pos.x);
stmt->setFloat(++idx, _pos.y);
stmt->setFloat(++idx, _pos.z);
@@ -276,7 +276,7 @@ void SuggestionTicket::LoadFromDB(Field* fields)
_playerGuid = ObjectGuid::Create<HighGuid::Player>(fields[++idx].GetUInt64());
_note = fields[++idx].GetString();
_createTime = fields[++idx].GetUInt32();
- _mapId = fields[++idx].GetUInt32();
+ _mapId = fields[++idx].GetUInt16();
_pos.x = fields[++idx].GetFloat();
_pos.y = fields[++idx].GetFloat();
_pos.z = fields[++idx].GetFloat();
@@ -306,7 +306,7 @@ void SuggestionTicket::SaveToDB() const
stmt->setUInt32(idx, _id);
stmt->setUInt64(++idx, _playerGuid.GetCounter());
stmt->setString(++idx, _note);
- stmt->setUInt32(++idx, _mapId);
+ stmt->setUInt16(++idx, _mapId);
stmt->setFloat(++idx, _pos.x);
stmt->setFloat(++idx, _pos.y);
stmt->setFloat(++idx, _pos.z);