[c12605] Add const Group member iteration

This commit is contained in:
Schmoozerd 2013-05-31 11:42:37 +01:00 committed by Antz
parent a7c5b48160
commit 12ee7b95ea
4 changed files with 4 additions and 1 deletions

View file

@ -35,6 +35,7 @@ class MANGOS_DLL_SPEC GroupReference : public Reference<Group, Player>
GroupReference() : Reference<Group, Player>(), iSubGroup(0) {}
~GroupReference() { unlink(); }
GroupReference* next() { return (GroupReference*)Reference<Group, Player>::next(); }
GroupReference const* next() const { return (GroupReference const*)Reference<Group, Player>::next(); }
uint8 getSubGroup() const { return iSubGroup; }
void setSubGroup(uint8 pSubGroup) { iSubGroup = pSubGroup; }
};