diff options
author | Dan Lake | 2011-11-16 02:33:56 -0800 |
---|---|---|
committer | Dan Lake | 2011-11-16 02:33:56 -0800 |
commit | bd01c4a5cb40a2df02e9a3a9aee3db0829795f05 (patch) | |
tree | bafc3ac11c56f15d8b05ad035a10dd7404428f4e | |
parent | In AddNewClient, iterator over copy of entities rather than copying under rea... (diff) | |
download | opensim-SC-bd01c4a5cb40a2df02e9a3a9aee3db0829795f05.zip opensim-SC-bd01c4a5cb40a2df02e9a3a9aee3db0829795f05.tar.gz opensim-SC-bd01c4a5cb40a2df02e9a3a9aee3db0829795f05.tar.bz2 opensim-SC-bd01c4a5cb40a2df02e9a3a9aee3db0829795f05.tar.xz |
Call public ForEach instead of using m_entities directly. No semantic changes, just cleanup
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EntityManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EntityManager.cs b/OpenSim/Region/Framework/Scenes/EntityManager.cs index 1812bd2..b788a3c 100644 --- a/OpenSim/Region/Framework/Scenes/EntityManager.cs +++ b/OpenSim/Region/Framework/Scenes/EntityManager.cs | |||
@@ -79,7 +79,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
79 | { | 79 | { |
80 | List<EntityBase> tmp = new List<EntityBase>(); | 80 | List<EntityBase> tmp = new List<EntityBase>(); |
81 | 81 | ||
82 | m_entities.ForEach( | 82 | ForEach( |
83 | delegate(EntityBase entity) | 83 | delegate(EntityBase entity) |
84 | { | 84 | { |
85 | if (entity is T) | 85 | if (entity is T) |
@@ -93,7 +93,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
93 | public EntityBase[] GetEntities() | 93 | public EntityBase[] GetEntities() |
94 | { | 94 | { |
95 | List<EntityBase> tmp = new List<EntityBase>(m_entities.Count); | 95 | List<EntityBase> tmp = new List<EntityBase>(m_entities.Count); |
96 | m_entities.ForEach(delegate(EntityBase entity) { tmp.Add(entity); }); | 96 | ForEach(delegate(EntityBase entity) { tmp.Add(entity); }); |
97 | return tmp.ToArray(); | 97 | return tmp.ToArray(); |
98 | } | 98 | } |
99 | 99 | ||