aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EntityManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EntityManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EntityManager.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EntityManager.cs b/OpenSim/Region/Framework/Scenes/EntityManager.cs
index 4654efe..f034de8 100644
--- a/OpenSim/Region/Framework/Scenes/EntityManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EntityManager.cs
@@ -94,9 +94,7 @@ namespace OpenSim.Region.Framework.Scenes
94 94
95 public EntityBase[] GetEntities() 95 public EntityBase[] GetEntities()
96 { 96 {
97 List<EntityBase> tmp = new List<EntityBase>(m_entities.Count); 97 return m_entities.GetArray();
98 ForEach(delegate(EntityBase entity) { tmp.Add(entity); });
99 return tmp.ToArray();
100 } 98 }
101 99
102 public void ForEach(Action<EntityBase> action) 100 public void ForEach(Action<EntityBase> action)