diff options
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rwxr-xr-x | src/server/game/Groups/Group.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index bb7b37c1eaf..0e47034fbf0 100755 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -812,12 +812,12 @@ void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject) RollId.push_back(r); - if (Creature* creature = dynamic_cast<Creature *>(pLootedObject)) + if (Creature* creature = pLootedObject->ToCreature()) { creature->m_groupLootTimer = 60000; creature->lootingGroupLowGUID = GetLowGUID(); } - else if (GameObject* go = dynamic_cast<GameObject *>(pLootedObject)) + else if (GameObject* go = pLootedObject->ToGameObject()) { go->m_groupLootTimer = 60000; go->lootingGroupLowGUID = GetLowGUID(); @@ -903,7 +903,7 @@ void Group::NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject) RollId.push_back(r); - if (Creature* creature = dynamic_cast<Creature *>(pLootedObject)) + if (Creature* creature = pLootedObject->ToCreature()) { creature->m_groupLootTimer = 60000; creature->lootingGroupLowGUID = GetLowGUID(); |