aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs
index c4411e3..aeb9c61 100644
--- a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs
@@ -108,7 +108,10 @@ namespace OpenSim.Region.Environment.Scenes
108 StreamWriter stream = new StreamWriter(file); 108 StreamWriter stream = new StreamWriter(file);
109 int primCount = 0; 109 int primCount = 0;
110 stream.WriteLine("<scene>\n"); 110 stream.WriteLine("<scene>\n");
111 foreach (EntityBase ent in m_innerScene.Entities.Values) 111
112 List<EntityBase> EntityList = m_innerScene.GetEntities();
113
114 foreach (EntityBase ent in EntityList)
112 { 115 {
113 if (ent is SceneObjectGroup) 116 if (ent is SceneObjectGroup)
114 { 117 {
@@ -170,7 +173,10 @@ namespace OpenSim.Region.Environment.Scenes
170 StreamWriter stream = new StreamWriter(file); 173 StreamWriter stream = new StreamWriter(file);
171 int primCount = 0; 174 int primCount = 0;
172 stream.WriteLine("<scene>\n"); 175 stream.WriteLine("<scene>\n");
173 foreach (EntityBase ent in m_innerScene.Entities.Values) 176
177 List<EntityBase> EntityList = m_innerScene.GetEntities();
178
179 foreach (EntityBase ent in EntityList)
174 { 180 {
175 if (ent is SceneObjectGroup) 181 if (ent is SceneObjectGroup)
176 { 182 {