From 2d3140fc9a2814d90b7782f0f860a12323fe9fbf Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 17 Nov 2024 00:01:55 +0000 Subject: [PATCH] oops let loop go on. Thanks Tampa --- OpenSim/Addons/Groups/Service/GroupsService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs index fc2cacfee8..b8e5ae40b6 100644 --- a/OpenSim/Addons/Groups/Service/GroupsService.cs +++ b/OpenSim/Addons/Groups/Service/GroupsService.cs @@ -1072,10 +1072,11 @@ namespace OpenSim.Groups if (role is null) { m_log.Warn($"[GROUPSERVICE] role with id {rdata.RoleID} is null"); - return false; + continue; } - return (UInt64.Parse(role.Data["Powers"]) & (ulong)power) != 0; + if ((UInt64.Parse(role.Data["Powers"]) & (ulong)power) != 0) + return true; } return false; }