[Bug Fix] Fix issue with Group Pointers/Member roles (#3374)

* [Bug Fix] Fix issue with Group Corruption

* cleanup

* Fix for Group Roles

* Fix for Group Roles
This commit is contained in:
Aeadoin authored and GitHub committed 2023-05-24 22:40:59 -05:00
1 parent 39d0772a01
commit 290c58741e
2 files changed
+31 -23

No files matched your search

+7
View File
@@ -1156,6 +1156,13 @@ bool Group::LearnMembers() {
);
}
for(int i = 0; i < MAX_GROUP_MEMBERS; ++i)
{
members[i] = nullptr;
memset(membername[i],0,64);
MemberRoles[i] = 0;
}
int memberIndex = 0;
for (const auto& member : rows) {
if (memberIndex >= MAX_GROUP_MEMBERS) {