aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSignpostMarv2012-09-01 02:18:36 +0100
committerJustin Clark-Casey (justincc)2012-09-04 00:03:43 +0100
commit663bfbb372218af6e2a854a011152c9efdb82eaa (patch)
tree0d8f9beb9928a49ba09c20833e220aa92de51a75 /OpenSim
parentRevert "made setting rotation match Second Life" (diff)
downloadopensim-SC_OLD-663bfbb372218af6e2a854a011152c9efdb82eaa.zip
opensim-SC_OLD-663bfbb372218af6e2a854a011152c9efdb82eaa.tar.gz
opensim-SC_OLD-663bfbb372218af6e2a854a011152c9efdb82eaa.tar.bz2
opensim-SC_OLD-663bfbb372218af6e2a854a011152c9efdb82eaa.tar.xz
although the attachmentPoint argument is a uint, zero is not a valid attachment point
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 }