aboutsummaryrefslogtreecommitdiff
path: root/src/game/Group.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Group.h')
-rw-r--r--src/game/Group.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/Group.h b/src/game/Group.h
index 7cb37b17ff0..dabb1715968 100644
--- a/src/game/Group.h
+++ b/src/game/Group.h
@@ -224,7 +224,7 @@ class TRINITY_DLL_SPEC Group
return (mslot1->group==slot2->group);
}
-
+
bool HasFreeSlotSubGroup(uint8 subgroup) const
{
return (m_subGroupsCounts && m_subGroupsCounts[subgroup] < MAXGROUPSIZE);
@@ -347,15 +347,15 @@ class TRINITY_DLL_SPEC Group
bool _setMainAssistant(const uint64 &guid);
void _homebindIfInstance(Player *player);
-
+
void _initRaidSubGroupsCounter()
{
// Sub group counters initialization
if (!m_subGroupsCounts)
m_subGroupsCounts = new uint8[MAXRAIDSIZE / MAXGROUPSIZE];
-
+
memset((void*)m_subGroupsCounts, 0, (MAXRAIDSIZE / MAXGROUPSIZE)*sizeof(uint8));
-
+
for (member_citerator itr = m_memberSlots.begin(); itr != m_memberSlots.end(); ++itr)
++m_subGroupsCounts[itr->group];
}
@@ -379,13 +379,13 @@ class TRINITY_DLL_SPEC Group
}
return m_memberSlots.end();
}
-
+
void SubGroupCounterIncrease(uint8 subgroup)
{
if (m_subGroupsCounts)
++m_subGroupsCounts[subgroup];
}
-
+
void SubGroupCounterDecrease(uint8 subgroup)
{
if (m_subGroupsCounts)