still another

0.9.1.0-post-fixes
UbitUmarov 2018-12-19 04:01:52 +00:00
parent 3941c827cc
commit f03ee2f795
1 changed files with 4 additions and 2 deletions

View File

@ -2691,12 +2691,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal);
}
while (remaining.Length > 2)
while (remaining.Length > 1)
{
linknumber = remaining.GetLSLIntegerItem(0);
rules = remaining.GetSublist(1, -1);
parts = m_LSL_Api.GetLinkParts(linknumber);
if(parts.Count == 0)
break;
rules = remaining.GetSublist(1, -1);
foreach (SceneObjectPart part in parts)
remaining = m_LSL_Api.GetPrimParams(part, rules, ref retVal);
}