From 03bd6c91a9e7e18c4f0d529e8cb63bd6d834d03c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 18 Jul 2008 11:51:27 +0000 Subject: * Fix http://opensimulator.org/mantis/view.php?id=1761 * Now llGetLinkNumber() returns 0 if the prim is not linked, instead of 1 --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7f24f0e..e396bb4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -2457,7 +2457,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { m_host.AddScriptLPS(1); - if (m_host.ParentGroup.Children.Count > 0) + if (m_host.ParentGroup.Children.Count > 1) { return m_host.LinkNum + 1; } -- cgit v1.1