aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2010-05-21 14:19:47 +0200
committerSpp <spp@jorge.gr>2010-05-21 14:19:47 +0200
commit1b5d171d0bf617fe00a41314d6b264fc679e7d56 (patch)
treef04946414a119657e05996842548679dd5784d9c /src
parentc551b23b1533651f4dc4f53cb9b72dcc83136edb (diff)
Group: Fix guid and internal counter default value.
Use them in SMSG_GROUP_LIST with groupType 0x10 --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Group.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index ceec11fa94a..02708bae0bb 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -44,6 +44,8 @@ Group::Group()
m_looterGuid = 0;
m_lootThreshold = ITEM_QUALITY_UNCOMMON;
m_subGroupsCounts = NULL;
+ m_guid = 0;
+ m_counter = 0;
for (uint8 i = 0; i < TARGETICONCOUNT; ++i)
m_targetIcons[i] = 0;
@@ -367,7 +369,7 @@ uint32 Group::RemoveMember(const uint64 &guid, const uint8 &method)
{
data.Initialize(SMSG_GROUP_LIST, 1+1+1+1+8+4+4+8);
data << uint8(0x10) << uint8(0) << uint8(0) << uint8(0);
- data << uint64(0) << uint32(0) << uint32(0) << uint64(0);
+ data << uint64(m_guid) << uint32(m_counter) << uint32(0) << uint64(0);
player->GetSession()->SendPacket(&data);
}
@@ -453,7 +455,7 @@ void Group::Disband(bool hideDestroy)
{
data.Initialize(SMSG_GROUP_LIST, 1+1+1+1+8+4+4+8);
data << uint8(0x10) << uint8(0) << uint8(0) << uint8(0);
- data << uint64(0) << uint32(0) << uint32(0) << uint64(0);
+ data << uint64(m_guid) << uint32(m_counter) << uint32(0) << uint64(0);
player->GetSession()->SendPacket(&data);
}