From 54b4523da85554dfeff9369ec8b7bfc438953dcc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 6 Jan 2019 02:10:17 +0000 Subject: let DoubleDictionary... also have a values array --- OpenSim/Region/Framework/Scenes/EntityManager.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'OpenSim/Region') 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 public EntityBase[] GetEntities() { - List tmp = new List(m_entities.Count); - ForEach(delegate(EntityBase entity) { tmp.Add(entity); }); - return tmp.ToArray(); + return m_entities.GetArray(); } public void ForEach(Action action) -- cgit v1.1