diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs index 5229489..65fa9ba 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs | |||
@@ -272,7 +272,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
272 | 272 | ||
273 | lock (scene) | 273 | lock (scene) |
274 | { | 274 | { |
275 | scene.Entities = ReplacementList; | 275 | scene.Entities.Clear(); |
276 | |||
277 | foreach(KeyValuePair<UUID,EntityBase> kvp in ReplacementList) | ||
278 | { | ||
279 | scene.Entities.Add(kvp.Value); | ||
280 | } | ||
276 | } | 281 | } |
277 | 282 | ||
278 | foreach (EntityBase ent in ReplacementList.Values) | 283 | foreach (EntityBase ent in ReplacementList.Values) |