diff options
author | Spp <none@none> | 2010-05-08 01:58:47 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-05-08 01:58:47 +0200 |
commit | d6df19cd9948ff6d108f88e0d8c77bdbda5922ab (patch) | |
tree | c5ebf7fc17c69aebad723a0190902f524a41fd2d /src/game/Creature.cpp | |
parent | 0d06050eb409c2b14dff199379ad89551bcdd93f (diff) |
Add GUID to groups
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 34372ac614d..a78829f1669 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -140,7 +140,7 @@ bool ForcedDespawnDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) Creature::Creature() : Unit(), -lootForPickPocketed(false), lootForBody(false), m_groupLootTimer(0), lootingGroupLeaderGUID(0), +lootForPickPocketed(false), lootForBody(false), m_groupLootTimer(0), lootingGroupGUID(0), m_lootMoney(0), m_lootRecipient(0), m_deathTimer(0), m_respawnTime(0), m_respawnDelay(300), m_corpseDelay(60), m_respawnradius(0.0f), m_defaultMovementType(IDLE_MOTION_TYPE), m_DBTableGuid(0), m_equipmentId(0), m_AlreadyCallAssistance(false), @@ -481,18 +481,18 @@ void Creature::Update(uint32 diff) if (m_isDeadByDefault) break; - if (m_groupLootTimer && lootingGroupLeaderGUID) + if (m_groupLootTimer && lootingGroupGUID) { // for delayed spells m_Events.Update(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; } |