aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp8
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;
}