diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 3c824eb..9d5f670 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2691,12 +2691,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2691 | remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal); | 2691 | remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal); |
2692 | } | 2692 | } |
2693 | 2693 | ||
2694 | while (remaining.Length > 2) | 2694 | while (remaining.Length > 1) |
2695 | { | 2695 | { |
2696 | linknumber = remaining.GetLSLIntegerItem(0); | 2696 | linknumber = remaining.GetLSLIntegerItem(0); |
2697 | rules = remaining.GetSublist(1, -1); | ||
2698 | parts = m_LSL_Api.GetLinkParts(linknumber); | 2697 | parts = m_LSL_Api.GetLinkParts(linknumber); |
2698 | if(parts.Count == 0) | ||
2699 | break; | ||
2699 | 2700 | ||
2701 | rules = remaining.GetSublist(1, -1); | ||
2700 | foreach (SceneObjectPart part in parts) | 2702 | foreach (SceneObjectPart part in parts) |
2701 | remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal); | 2703 | remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal); |
2702 | } | 2704 | } |