Modified llGetInventoryName() so it indexes inventory in the same manner the LL grid does. (Thanks Teravus for pointing this out.)

0.6.0-stable
alondria 2008-03-24 21:19:01 +00:00
parent 3aa843cea8
commit 2b4915ef27
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}