From 2b4915ef2786849aefab7aef03b4a4b43650edfc Mon Sep 17 00:00:00 2001 From: alondria Date: Mon, 24 Mar 2008 21:19:01 +0000 Subject: Modified llGetInventoryName() so it indexes inventory in the same manner the LL grid does. (Thanks Teravus for pointing this out.) --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index b5df2ac..f66bfe4 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -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; } -- cgit v1.1