diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ba35b55..45efa77 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3886,6 +3886,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3886 | if (m_item.PermsGranter != m_host.OwnerID) | 3886 | if (m_item.PermsGranter != m_host.OwnerID) |
3887 | return; | 3887 | return; |
3888 | 3888 | ||
3889 | SceneObjectGroup grp = m_host.ParentGroup; | ||
3890 | if (grp == null || grp.IsDeleted || grp.IsAttachment) | ||
3891 | return; | ||
3892 | |||
3889 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0) | 3893 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0) |
3890 | AttachToAvatar(attachmentPoint); | 3894 | AttachToAvatar(attachmentPoint); |
3891 | } | 3895 | } |