diff options
author | Trazom62 <none@none> | 2010-04-11 12:57:09 +0200 |
---|---|---|
committer | Trazom62 <none@none> | 2010-04-11 12:57:09 +0200 |
commit | 42bf7753a3834a39cf0fbcf462f23b49d34d99d7 (patch) | |
tree | 28227ef92746f5cd11ba259a043986a9a3d45e2a /src/game/Group.cpp | |
parent | 51777d185b042b403e9b86e15aa02441dff9eccf (diff) |
Fix Crash in GroupLoot and NeedBeforeGreed.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Group.cpp')
-rw-r--r-- | src/game/Group.cpp | 6 |
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); |