[9228] Speedup groups store and other code work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zhenya 2010-01-21 17:36:08 +03:00 committed by VladimirMangos
parent 4995a6d298
commit 4178d5bb6a
7 changed files with 74 additions and 91 deletions

View file

@ -404,8 +404,7 @@ void Creature::Update(uint32 diff)
}
else
{
Group* group = sObjectMgr.GetGroupByLeader(lootingGroupLeaderGUID);
if (group)
if (Group* group = sObjectMgr.GetGroupByLeaderLowGUID(GUID_LOPART(lootingGroupLeaderGUID)))
group->EndRoll();
m_groupLootTimer = 0;
lootingGroupLeaderGUID = 0;