Deep copy the collection of at_target objects so it can't be modified while
it's being iteratedavinationmerge
parent
453192d721
commit
0d00b97aec
|
@ -1666,7 +1666,10 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
List<SceneObjectGroup> objs = new List<SceneObjectGroup>();
|
||||
lock (m_groupsWithTargets)
|
||||
objs = new List<SceneObjectGroup>(m_groupsWithTargets.Values);
|
||||
{
|
||||
foreach (SceneObjectGroup grp in m_groupsWithTargets.Values)
|
||||
objs.Add(grp);
|
||||
}
|
||||
|
||||
foreach (SceneObjectGroup entry in objs)
|
||||
entry.checkAtTargets();
|
||||
|
|
Loading…
Reference in New Issue