Browse Source

* Fix http://opensimulator.org/mantis/view.php?id=1761
* Now llGetLinkNumber() returns 0 if the prim is not linked, instead of 1

Justin Clarke Casey 16 years ago
parent
commit
03bd6c91a9

+ 1 - 1
OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs

@@ -2569,7 +2569,7 @@ namespace OpenSim.Region.ScriptEngine.Common
         {
             m_host.AddScriptLPS(1);
 
-            if (m_host.ParentGroup.Children.Count > 0)
+            if (m_host.ParentGroup.Children.Count > 1)
             {
                 return m_host.LinkNum + 1;
             }

+ 1 - 1
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;
             }