diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index f9bfffd..62245d4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -424,8 +424,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
424 | get { return m_rootPart.UUID; } | 424 | get { return m_rootPart.UUID; } |
425 | set | 425 | set |
426 | { | 426 | { |
427 | m_rootPart.UUID = value; | 427 | lock (m_parts.SyncRoot) |
428 | m_parts.AddOrReplace(value, m_rootPart); | 428 | { |
429 | m_parts.Remove(m_rootPart.UUID); | ||
430 | m_rootPart.UUID = value; | ||
431 | m_parts.Add(value, m_rootPart); | ||
432 | } | ||
429 | } | 433 | } |
430 | } | 434 | } |
431 | 435 | ||