Deep copy the collection of at_target objects so it can't be modified while
it's being iterated0.7.4-extended
parent
9d70f48207
commit
fe195e0a9c
|
@ -1648,9 +1648,12 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
private void CheckAtTargets()
|
||||
{
|
||||
Dictionary<UUID, SceneObjectGroup>.ValueCollection objs;
|
||||
List<SceneObjectGroup> objs = new List<SceneObjectGroup>();
|
||||
lock (m_groupsWithTargets)
|
||||
objs = 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