aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index e2b3ef4..61397cd 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7740,11 +7740,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7740 { 7740 {
7741 m_host.AddScriptLPS(1); 7741 m_host.AddScriptLPS(1);
7742 if(linknum == ScriptBaseClass.LINK_SET || 7742 if(linknum == ScriptBaseClass.LINK_SET ||
7743 linknum == ScriptBaseClass.LINK_ALL_CHILDREN || 7743 linknum == ScriptBaseClass.LINK_ALL_CHILDREN ||
7744 linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString(); 7744 linknum == ScriptBaseClass.LINK_ALL_OTHERS ||
7745 linknum == 0)
7746 return UUID.Zero.ToString();
7745 7747
7746 List<SceneObjectPart> parts = GetLinkParts(linknum); 7748 List<SceneObjectPart> parts = GetLinkParts(linknum);
7747 if (parts.Count == 0) return UUID.Zero.ToString(); 7749 if (parts.Count == 0)
7750 return UUID.Zero.ToString();
7748 return parts[0].SitTargetAvatar.ToString(); 7751 return parts[0].SitTargetAvatar.ToString();
7749 } 7752 }
7750 7753