although the attachmentPoint argument is a uint, zero is not a valid attachment point

integration
SignpostMarv 2012-09-01 02:18:36 +01:00 committed by Justin Clark-Casey (justincc)
parent d297eb39e5
commit 663bfbb372
1 changed files with 4 additions and 1 deletions

View File

@ -3418,7 +3418,9 @@ namespace OpenSim.Region.Framework.Scenes
public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
{
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
if (attachmentPoint >= 0)
{
lock (m_attachments)
{
foreach (SceneObjectGroup so in m_attachments)
@ -3427,6 +3429,7 @@ namespace OpenSim.Region.Framework.Scenes
attachments.Add(so);
}
}
}
return attachments;
}