diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
1798 | { | 1798 | { |
1799 | if (inv.Value.InvType == type) | 1799 | if (inv.Value.InvType == type) |
1800 | { | 1800 | { |
1801 | keys.Add(inv.Key.ToString()); | 1801 | keys.Add(inv.Value.Name); |
1802 | } | 1802 | } |
1803 | } | 1803 | } |
1804 | if (keys.Count == 0) | 1804 | if (keys.Count == 0) |
1805 | { | 1805 | { |
1806 | 1806 | return String.Empty; | |
1807 | } | 1807 | } |
1808 | keys.Sort(); | 1808 | keys.Sort(); |
1809 | if (keys.Count > number) | 1809 | if (keys.Count > number) |
1810 | { | 1810 | { |
1811 | return m_host.TaskInventory[LLUUID.Parse((string)keys[number])].Name; | 1811 | return (string)keys[number]; |
1812 | } | 1812 | } |
1813 | return String.Empty; | 1813 | return String.Empty; |
1814 | } | 1814 | } |