aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 364d3c7..b8a4831 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -2265,8 +2265,14 @@ namespace OpenSim.Region.Environment.Scenes
2265 { 2265 {
2266 2266
2267 // Tell the object to do permission update 2267 // Tell the object to do permission update
2268 SceneObjectGroup chObjectGroup = GetGroupByPrim(localId); 2268 if (localId != 0)
2269 chObjectGroup.UpdatePermissions(agentID, field, localId, mask, set); 2269 {
2270 SceneObjectGroup chObjectGroup = GetGroupByPrim(localId);
2271 if (chObjectGroup != null)
2272 {
2273 chObjectGroup.UpdatePermissions(agentID, field, localId, mask, set);
2274 }
2275 }
2270 2276
2271 } 2277 }
2272 } 2278 }