aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Groups/Group.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-23 17:01:26 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-23 17:01:26 +0200
commit08c56eb1109aed2c6dabe728c945d4afd4943753 (patch)
tree27c73ebb9fcf30c3a7fd08fef6d58a6f4a585190 /src/server/game/Groups/Group.cpp
parentff781978a56b33567d704a860a94e5e28a53aee4 (diff)
Core/Entities: First step to 128 bit guids
* Database fields storing full guid have been converted to BINARY(16)
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r--src/server/game/Groups/Group.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp
index 50700f5126a..e4fc401e15f 100644
--- a/src/server/game/Groups/Group.cpp
+++ b/src/server/game/Groups/Group.cpp
@@ -134,14 +134,14 @@ bool Group::Create(Player* leader)
stmt->setUInt8(index++, uint8(m_lootMethod));
stmt->setUInt32(index++, m_looterGuid.GetCounter());
stmt->setUInt8(index++, uint8(m_lootThreshold));
- stmt->setUInt64(index++, m_targetIcons[0].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[1].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[2].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[3].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[4].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[5].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[6].GetRawValue());
- stmt->setUInt64(index++, m_targetIcons[7].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[0].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[1].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[2].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[3].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[4].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[5].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[6].GetRawValue());
+ stmt->setBinary(index++, m_targetIcons[7].GetRawValue());
stmt->setUInt8(index++, uint8(m_groupType));
stmt->setUInt32(index++, uint8(m_dungeonDifficulty));
stmt->setUInt32(index++, uint8(m_raidDifficulty));
@@ -175,7 +175,7 @@ void Group::LoadGroupFromDB(Field* fields)
m_lootThreshold = ItemQualities(fields[3].GetUInt8());
for (uint8 i = 0; i < TARGETICONCOUNT; ++i)
- m_targetIcons[i].Set(fields[4 + i].GetUInt64());
+ m_targetIcons[i].SetRawValue(fields[4 + i].GetBinary());
m_groupType = GroupType(fields[12].GetUInt8());
if (m_groupType & GROUPTYPE_RAID)