Call public ForEach instead of using m_entities directly. No semantic changes, just cleanup
parent
baa65d4a15
commit
bd01c4a5cb
|
@ -79,7 +79,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
List<EntityBase> tmp = new List<EntityBase>();
|
List<EntityBase> tmp = new List<EntityBase>();
|
||||||
|
|
||||||
m_entities.ForEach(
|
ForEach(
|
||||||
delegate(EntityBase entity)
|
delegate(EntityBase entity)
|
||||||
{
|
{
|
||||||
if (entity is T)
|
if (entity is T)
|
||||||
|
@ -93,7 +93,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public EntityBase[] GetEntities()
|
public EntityBase[] GetEntities()
|
||||||
{
|
{
|
||||||
List<EntityBase> tmp = new List<EntityBase>(m_entities.Count);
|
List<EntityBase> tmp = new List<EntityBase>(m_entities.Count);
|
||||||
m_entities.ForEach(delegate(EntityBase entity) { tmp.Add(entity); });
|
ForEach(delegate(EntityBase entity) { tmp.Add(entity); });
|
||||||
return tmp.ToArray();
|
return tmp.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue