Add GUID to groups

--HG--
branch : trunk
This commit is contained in:
Spp
2010-05-08 01:58:47 +02:00
parent 0d06050eb4
commit d6df19cd99
16 changed files with 241 additions and 228 deletions

View File

@@ -62,7 +62,7 @@ GameObject::GameObject() : WorldObject(), m_goValue(new GameObjectValue)
m_rotation = 0;
m_groupLootTimer = 0;
lootingGroupLeaderGUID = 0;
lootingGroupGUID = 0;
ResetLootMode(); // restore default loot mode
}
@@ -440,11 +440,11 @@ void GameObject::Update(uint32 diff)
{
if (m_groupLootTimer <= diff)
{
Group* group = objmgr.GetGroupByLeader(lootingGroupLeaderGUID);
Group* group = objmgr.GetGroupByGUID(lootingGroupGUID);
if (group)
group->EndRoll(&loot);
m_groupLootTimer = 0;
lootingGroupLeaderGUID = 0;
lootingGroupGUID = 0;
}
else m_groupLootTimer -= diff;
}