aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-04-11 14:25:02 +0400
committern0n4m3 <none@none>2010-04-11 14:25:02 +0400
commitdca29fa4ebf1aae715eadbe563856e0c86091aaa (patch)
treefe5648e7769d7d3cab2954e37eef425c208faa11 /src
parent8820d4f6da93bd0ce6b60f2269504278a0b46d8b (diff)
Temp revert prev. commit.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Group.cpp6
-rw-r--r--src/game/Group.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index 5b657b43bc8..66b3024ff47 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -578,7 +578,7 @@ void Group::SendLooter(Creature *pCreature, Player *pLooter)
BroadcastPacket(&data, false);
}
-void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject, Creature *creature)
+void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject)
{
std::vector<LootItem>::iterator i;
ItemPrototype const *item;
@@ -625,6 +625,7 @@ void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject, Creature *creature
loot->items[itemSlot].is_blocked = true;
+ Creature *creature;
SendLootStartRoll(60000, creature->GetMapId(), *r);
RollId.push_back(r);
@@ -650,7 +651,7 @@ void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject, Creature *creature
}
}
-void Group::NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject, Creature *creature)
+void Group::NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject)
{
ItemPrototype const *item;
uint8 itemSlot = 0;
@@ -690,6 +691,7 @@ void Group::NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject, Creature *cr
loot->items[itemSlot].is_blocked = true;
+ Creature *creature;
SendLootStartRoll(60000, creature->GetMapId(), *r);
RollId.push_back(r);
diff --git a/src/game/Group.h b/src/game/Group.h
index 0fa008a12cf..41e45a4cac6 100644
--- a/src/game/Group.h
+++ b/src/game/Group.h
@@ -325,8 +325,8 @@ class Group
void SendLootRollWon(const uint64& SourceGuid, const uint64& TargetGuid, uint8 RollNumber, uint8 RollType, const Roll &r);
void SendLootAllPassed(uint32 NumberOfPlayers, const Roll &r);
void SendLooter(Creature *pCreature, Player *pLooter);
- void GroupLoot(Loot *loot, WorldObject* pLootedObject, Creature *creature);
- void NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject, Creature *creature);
+ void GroupLoot(Loot *loot, WorldObject* pLootedObject);
+ void NeedBeforeGreed(Loot *loot, WorldObject* pLootedObject);
void MasterLoot(Loot *loot, WorldObject* pLootedObject);
Rolls::iterator GetRoll(uint64 Guid)
{