aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 2066536..4282b46 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1748,15 +1748,19 @@ namespace OpenSim.Region.Framework.Scenes
1748 1748
1749 private void CheckAtTargets() 1749 private void CheckAtTargets()
1750 { 1750 {
1751 List<SceneObjectGroup> objs = new List<SceneObjectGroup>(); 1751 List<SceneObjectGroup> objs = null;
1752
1752 lock (m_groupsWithTargets) 1753 lock (m_groupsWithTargets)
1753 { 1754 {
1754 foreach (SceneObjectGroup grp in m_groupsWithTargets.Values) 1755 if (m_groupsWithTargets.Count != 0)
1755 objs.Add(grp); 1756 objs = new List<SceneObjectGroup>(m_groupsWithTargets.Values);
1756 } 1757 }
1757 1758
1758 foreach (SceneObjectGroup entry in objs) 1759 if (objs != null)
1759 entry.checkAtTargets(); 1760 {
1761 foreach (SceneObjectGroup entry in objs)
1762 entry.checkAtTargets();
1763 }
1760 } 1764 }
1761 1765
1762 /// <summary> 1766 /// <summary>