aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneManager.cs
diff options
context:
space:
mode:
authorCharles Krinke2007-12-17 16:41:28 +0000
committerCharles Krinke2007-12-17 16:41:28 +0000
commita990c64698d465a6ed1694cdaa526254f8063663 (patch)
tree9833c5eb8a95ad44dcea0f84769703323d488a6e /OpenSim/Region/Environment/Scenes/SceneManager.cs
parentThank you, Kiryu for a patch to fix out of sync error in UDP server (diff)
downloadopensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.zip
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.gz
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.bz2
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.xz
Thank you to Kiryu for a patch to fix an out of Sync
error in Scene. Affects 6 files and is Mantis#201
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs10
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}