diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneGraph.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs index 3b6aa15..6901728 100644 --- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs | |||
@@ -1440,7 +1440,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
1440 | if (ent is SceneObjectGroup) | 1440 | if (ent is SceneObjectGroup) |
1441 | { | 1441 | { |
1442 | SceneObjectGroup obj = (SceneObjectGroup)ent; | 1442 | SceneObjectGroup obj = (SceneObjectGroup)ent; |
1443 | sceneObjects.Add(obj.LocalId, obj); | 1443 | // Nasty one. Can't unlink anything in the sim |
1444 | // If a duplicate local ID sneaks in | ||
1445 | // So, check it here! | ||
1446 | // | ||
1447 | if (!sceneObjects.ContainsKey(obj.LocalId)) | ||
1448 | sceneObjects.Add(obj.LocalId, obj); | ||
1444 | 1449 | ||
1445 | } | 1450 | } |
1446 | } | 1451 | } |