aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 83c3b78..6c690e8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7411,12 +7411,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7411 TargetOmega(part, axis, (double)spinrate, (double)gain); 7411 TargetOmega(part, axis, (double)spinrate, (double)gain);
7412 break; 7412 break;
7413 case (int)ScriptBaseClass.PRIM_LINK_TARGET: 7413 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
7414 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless. 7414 if (remain < 1)
7415 return; 7415 return;
7416 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++); 7416 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
7417 LSL_List new_rules = rules.GetSublist(idx, -1); 7417 part = part.ParentGroup.GetLinkNumPart((int)new_linknumber);
7418 setLinkPrimParams((int)new_linknumber, new_rules); 7418 break;
7419 return;
7420 } 7419 }
7421 } 7420 }
7422 } 7421 }