diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs index 7788e43..4d97db7 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | |||
@@ -161,11 +161,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
161 | bool foundPrim = false; | 161 | bool foundPrim = false; |
162 | 162 | ||
163 | SceneObjectGroup sog = ent as SceneObjectGroup; | 163 | SceneObjectGroup sog = ent as SceneObjectGroup; |
164 | |||
165 | List<SceneObjectPart> partList = null; | ||
166 | lock (sog.Children) | ||
167 | partList = new List<SceneObjectPart>(sog.Children.Values); | ||
168 | 164 | ||
165 | SceneObjectPart[] partList = sog.Parts; | ||
169 | foreach (SceneObjectPart part in partList) | 166 | foreach (SceneObjectPart part in partList) |
170 | { | 167 | { |
171 | if (part.LocalId == primLocalID) | 168 | if (part.LocalId == primLocalID) |