Modified llGetInventoryName() so it indexes inventory in the same manner the LL grid does. (Thanks Teravus for pointing this out.)
parent
3aa843cea8
commit
2b4915ef27
|
@ -1798,17 +1798,17 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
{
|
||||
if (inv.Value.InvType == type)
|
||||
{
|
||||
keys.Add(inv.Key.ToString());
|
||||
keys.Add(inv.Value.Name);
|
||||
}
|
||||
}
|
||||
if (keys.Count == 0)
|
||||
{
|
||||
|
||||
return String.Empty;
|
||||
}
|
||||
keys.Sort();
|
||||
if (keys.Count > number)
|
||||
{
|
||||
return m_host.TaskInventory[LLUUID.Parse((string)keys[number])].Name;
|
||||
return (string)keys[number];
|
||||
}
|
||||
return String.Empty;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue