aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1d7dcee..6c22338 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3644,10 +3644,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3644 { 3644 {
3645 3645
3646 partItemID = item.ItemID; 3646 partItemID = item.ItemID;
3647 linkNumber = m_host.LinkNum;
3648 if(m_host.ParentGroup.Children.Count == 1)
3649 linkNumber = 0;
3650
3647 3651
3648 object[] resobj = new object[] 3652 object[] resobj = new object[]
3649 { 3653 {
3650 new LSL_Integer(m_host.LinkNum), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id) 3654 new LSL_Integer(linkNumber), new LSL_Integer(num), new LSL_String(msg), new LSL_String(id)
3651 }; 3655 };
3652 3656
3653 m_ScriptEngine.PostScriptEvent(partItemID, 3657 m_ScriptEngine.PostScriptEvent(partItemID,