diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index c589e8d..e822874 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -290,7 +290,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
290 | { | 290 | { |
291 | ForEachCurrentScene(delegate(Scene scene) | 291 | ForEachCurrentScene(delegate(Scene scene) |
292 | { | 292 | { |
293 | foreach (EntityBase entity in scene.Entities.Values) | 293 | List<EntityBase> EntitieList = scene.GetEntities(); |
294 | |||
295 | foreach (EntityBase entity in EntitieList) | ||
294 | { | 296 | { |
295 | if (entity is ScenePresence) | 297 | if (entity is ScenePresence) |
296 | { | 298 | { |
@@ -315,7 +317,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
315 | 317 | ||
316 | ForEachCurrentScene(delegate(Scene scene) | 318 | ForEachCurrentScene(delegate(Scene scene) |
317 | { | 319 | { |
318 | foreach (EntityBase entity in scene.Entities.Values) | 320 | List<EntityBase> EntitieList = scene.GetEntities(); |
321 | |||
322 | foreach (EntityBase entity in EntitieList) | ||
319 | { | 323 | { |
320 | if (entity is ScenePresence) | 324 | if (entity is ScenePresence) |
321 | { | 325 | { |
@@ -419,4 +423,4 @@ namespace OpenSim.Region.Environment.Scenes | |||
419 | m_localScenes.ForEach(action); | 423 | m_localScenes.ForEach(action); |
420 | } | 424 | } |
421 | } | 425 | } |
422 | } \ No newline at end of file | 426 | } |