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

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