diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 867fb10..ac82fda 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2064,9 +2064,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2064 | sog.SetGroup(groupID, remoteClient); | 2064 | sog.SetGroup(groupID, remoteClient); |
2065 | sog.ScheduleGroupForFullUpdate(); | 2065 | sog.ScheduleGroupForFullUpdate(); |
2066 | 2066 | ||
2067 | List<SceneObjectPart> partList = null; | 2067 | SceneObjectPart[] partList = sog.Parts; |
2068 | lock (sog.Children) | ||
2069 | partList = new List<SceneObjectPart>(sog.Children.Values); | ||
2070 | 2068 | ||
2071 | foreach (SceneObjectPart child in partList) | 2069 | foreach (SceneObjectPart child in partList) |
2072 | child.Inventory.ChangeInventoryOwner(ownerID); | 2070 | child.Inventory.ChangeInventoryOwner(ownerID); |
@@ -2079,9 +2077,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2079 | if (sog.GroupID != groupID) | 2077 | if (sog.GroupID != groupID) |
2080 | continue; | 2078 | continue; |
2081 | 2079 | ||
2082 | List<SceneObjectPart> partList = null; | 2080 | SceneObjectPart[] partList = sog.Parts; |
2083 | lock (sog.Children) | ||
2084 | partList = new List<SceneObjectPart>(sog.Children.Values); | ||
2085 | 2081 | ||
2086 | foreach (SceneObjectPart child in partList) | 2082 | foreach (SceneObjectPart child in partList) |
2087 | { | 2083 | { |