Fix Crash in GroupLoot and NeedBeforeGreed.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-04-11 12:57:09 +02:00
parent 51777d185b
commit 42bf7753a3

View File

@@ -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);