diff options
author | Alan M Webb | 2009-09-16 09:44:48 -0400 |
---|---|---|
committer | dr scofield (aka dirk husemann) | 2009-09-16 16:38:29 +0200 |
commit | 3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189 (patch) | |
tree | 75fbcf6a8643f62d0007b3835c9c129b4ae94963 /OpenSim/Region | |
parent | Stop a loaded OAR from generating on_rez events. This brings (diff) | |
download | opensim-SC_OLD-3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189.zip opensim-SC_OLD-3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189.tar.gz opensim-SC_OLD-3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189.tar.bz2 opensim-SC_OLD-3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189.tar.xz |
This fixes a boundary case error in the strided list
implementation. If the range included only a single item
an empty list was always returned (has no-one been using
this function?)
Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 02befda..633cca8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5041,6 +5041,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5041 | } | 5041 | } |
5042 | } | 5042 | } |
5043 | } | 5043 | } |
5044 | else | ||
5045 | { | ||
5046 | result.Add(src.Data[start]); | ||
5047 | } | ||
5044 | 5048 | ||
5045 | return result; | 5049 | return result; |
5046 | } | 5050 | } |