Add GUID to groups
--HG-- branch : trunk
This commit is contained in:
1 parent
0d06050eb4
commit
d6df19cd99
16 files changed
+241
-228
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user