aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Group.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index 66b3024ff47..d5daaca4e90 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -625,8 +625,7 @@ void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject)
loot->items[itemSlot].is_blocked = true;
- Creature *creature;
- SendLootStartRoll(60000, creature->GetMapId(), *r);
+ SendLootStartRoll(60000, pLootedObject->GetMapId(), *r);
RollId.push_back(r);
@@ -691,8 +690,7 @@ void Group::NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject)
loot->items[itemSlot].is_blocked = true;
- Creature *creature;
- SendLootStartRoll(60000, creature->GetMapId(), *r);
+ SendLootStartRoll(60000, pLootedObject->GetMapId(), *r);
RollId.push_back(r);