What bug does the patch fix? Typo in member_with_max_level function in group.cpp/group.h. Is memeber_with_max_level currently.
For which SubVersion revision was the patch created? 6514
Is there a thread in the bug report section? No.
Who has been writing this patch? XTElite1
Other information This is my first patch submit, and my programming skills suck, so it might not be right, but thanks for all the learning experience so far.
Index: src/game/Group.cpp
===================================================================
--- src/game/Group.cpp (revision 6514)
+++ src/game/Group.cpp (working copy)
@@ -757,7 +757,7 @@
BroadcastPacket(&data);
}
-void Group::GetDataForXPAtKill(Unit const* victim, uint32& count,uint32& sum_level, Player* & memeber_with_max_level)
+void Group::GetDataForXPAtKill(Unit const* victim, uint32& count,uint32& sum_level, Player* & member_with_max_level)
{
for(GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
{
@@ -770,8 +770,8 @@
++count;
sum_level += member->getLevel();
- if(!memeber_with_max_level || memeber_with_max_level->getLevel() < member->getLevel())
- memeber_with_max_level = member;
+ if(!member_with_max_level || member_with_max_level->getLevel() < member->getLevel())
+ member_with_max_level = member;
}
}
Index: src/game/Group.h
===================================================================
--- src/game/Group.h (revision 6514)
+++ src/game/Group.h (working copy)
@@ -211,7 +211,7 @@
MemberSlotList const& GetMemberSlots() const { return m_memberSlots; }
GroupReference* GetFirstMember() { return m_memberMgr.getFirst(); }
uint32 GetMembersCount() const { return m_memberSlots.size(); }
- void GetDataForXPAtKill(Unit const* victim, uint32& count,uint32& sum_level, Player* & memeber_with_max_level);
+ void GetDataForXPAtKill(Unit const* victim, uint32& count,uint32& sum_level, Player* & member_with_max_level);
uint8 GetMemberGroup(uint64 guid) const
{
member_citerator mslot = _getMemberCSlot(guid);