diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 3273023..35f8ee0 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -2269,7 +2269,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2269 | int count = 0; | 2269 | int count = 0; |
2270 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) | 2270 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
2271 | { | 2271 | { |
2272 | if (inv.Value.InvType == type) | 2272 | if (inv.Value.Type == type || type == -1) |
2273 | { | 2273 | { |
2274 | count = count + 1; | 2274 | count = count + 1; |
2275 | } | 2275 | } |
@@ -2283,7 +2283,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2283 | ArrayList keys = new ArrayList(); | 2283 | ArrayList keys = new ArrayList(); |
2284 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) | 2284 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
2285 | { | 2285 | { |
2286 | if (inv.Value.InvType == type) | 2286 | if (inv.Value.Type == type || type == -1) |
2287 | { | 2287 | { |
2288 | keys.Add(inv.Value.Name); | 2288 | keys.Add(inv.Value.Name); |
2289 | } | 2289 | } |
@@ -2972,12 +2972,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2972 | 2972 | ||
2973 | public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end) | 2973 | public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end) |
2974 | { | 2974 | { |
2975 | //LSL_Types.list ret = new LSL_Types.list(src); | 2975 | return src.DeleteSublist(end, start); |
2976 | //ret.RemoveRange(start, end - start); | ||
2977 | //return ret; | ||
2978 | |||
2979 | // Just a hunch - needs testing | ||
2980 | return src.GetSublist(end, start); | ||
2981 | } | 2976 | } |
2982 | 2977 | ||
2983 | public int llGetListEntryType(LSL_Types.list src, int index) | 2978 | public int llGetListEntryType(LSL_Types.list src, int index) |