aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 5bf69ad..22d3289 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3418,7 +3418,9 @@ namespace OpenSim.Region.Framework.Scenes
3418 public List<SceneObjectGroup> GetAttachments(uint attachmentPoint) 3418 public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
3419 { 3419 {
3420 List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(); 3420 List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
3421 3421
3422 if (attachmentPoint >= 0)
3423 {
3422 lock (m_attachments) 3424 lock (m_attachments)
3423 { 3425 {
3424 foreach (SceneObjectGroup so in m_attachments) 3426 foreach (SceneObjectGroup so in m_attachments)
@@ -3427,6 +3429,7 @@ namespace OpenSim.Region.Framework.Scenes
3427 attachments.Add(so); 3429 attachments.Add(so);
3428 } 3430 }
3429 } 3431 }
3432 }
3430 3433
3431 return attachments; 3434 return attachments;
3432 } 3435 }