From b68c814bc6e8f538c02bcf674a51810fc03287d6 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 21 Aug 2014 10:53:59 +0100 Subject: ... --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 333eb9b..7eda10e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4756,7 +4756,8 @@ namespace OpenSim.Region.Framework.Scenes if (IsChildAgent) return; - m_scene.ForEachScenePresence(delegate(ScenePresence p) + List allPresences = m_scene.GetScenePresences(); + foreach(ScenePresence p in allPresences) { if (p != this) { @@ -4801,7 +4802,7 @@ namespace OpenSim.Region.Framework.Scenes part.UpdateFlag = 0; } } - }); + } } public void SendAttachmentScheduleUpdate(SceneObjectPart part) -- cgit v1.1