diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 6497d106c9..6a61670f79 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3881,7 +3881,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (attachmentsModule == null) return; - if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) != 0) + if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_ATTACH) == 0) return; SceneObjectGroup grp = m_host.ParentGroup; diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 1511495e5a..cafcf379a8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -127,7 +127,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase public void llAttachToAvatarTemp(LSL_Integer attachment) { - m_LSL_Functions.llAttachToAvatar(attachment); + m_LSL_Functions.llAttachToAvatarTemp(attachment); } public LSL_Key llAvatarOnSitTarget()