From 42bf7753a3834a39cf0fbcf462f23b49d34d99d7 Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Sun, 11 Apr 2010 12:57:09 +0200 Subject: Fix Crash in GroupLoot and NeedBeforeGreed. --HG-- branch : trunk --- src/game/Group.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3