Adjust CanAdminTarget to support multiple Group Immunity IDs (#1147)
This commit is contained in:
parent
4328627326
commit
8746b2fd7f
@ -1581,7 +1581,7 @@ bool AdminCache::CanAdminTarget(AdminId id, AdminId target)
|
|||||||
{
|
{
|
||||||
id = grp_table[i];
|
id = grp_table[i];
|
||||||
num = GetGroupImmunityCount(id);
|
num = GetGroupImmunityCount(id);
|
||||||
for (unsigned int j=0; j<num; i++)
|
for (unsigned int j=0; j<num; j++)
|
||||||
{
|
{
|
||||||
other = GetGroupImmunity(id, j);
|
other = GetGroupImmunity(id, j);
|
||||||
for (unsigned int k=0; k<pUser->grp_count; k++)
|
for (unsigned int k=0; k<pUser->grp_count; k++)
|
||||||
|
Loading…
Reference in New Issue
Block a user