aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoralondria2008-03-24 21:19:01 +0000
committeralondria2008-03-24 21:19:01 +0000
commit2b4915ef2786849aefab7aef03b4a4b43650edfc (patch)
treeedf1643bf2ce56ddb28d29166690954ca27da2d5
parent* Remove a spammy comment I meant to remove from the last commit (diff)
downloadopensim-SC-2b4915ef2786849aefab7aef03b4a4b43650edfc.zip
opensim-SC-2b4915ef2786849aefab7aef03b4a4b43650edfc.tar.gz
opensim-SC-2b4915ef2786849aefab7aef03b4a4b43650edfc.tar.bz2
opensim-SC-2b4915ef2786849aefab7aef03b4a4b43650edfc.tar.xz
Modified llGetInventoryName() so it indexes inventory in the same manner the LL grid does. (Thanks Teravus for pointing this out.)
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs6
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 }