From 3b1ef2bfd2ea0ad3b14295ca03f6c3974bf6a189 Mon Sep 17 00:00:00 2001 From: Alan M Webb Date: Wed, 16 Sep 2009 09:44:48 -0400 Subject: [PATCH] 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) --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 02befda49c..633cca867e 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 } } } + else + { + result.Add(src.Data[start]); + } return result; }