diff options
author | Melanie Thielker | 2008-09-09 00:43:14 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-09 00:43:14 +0000 |
commit | 75380bc1aa57addefab63a13c2c9de9008cfd69f (patch) | |
tree | a75e88eaddfce071b4f1588620e82ed1a808af37 | |
parent | Fix an inventory naming regression (diff) | |
download | opensim-SC_OLD-75380bc1aa57addefab63a13c2c9de9008cfd69f.zip opensim-SC_OLD-75380bc1aa57addefab63a13c2c9de9008cfd69f.tar.gz opensim-SC_OLD-75380bc1aa57addefab63a13c2c9de9008cfd69f.tar.bz2 opensim-SC_OLD-75380bc1aa57addefab63a13c2c9de9008cfd69f.tar.xz |
Fix delimiter access from list for llParseStringKeepNulls
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 58f5024..ae775f7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6711,7 +6711,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6711 | if (active[j]) | 6711 | if (active[j]) |
6712 | { | 6712 | { |
6713 | // scan all of the markers | 6713 | // scan all of the markers |
6714 | if ((offset[j] = src.IndexOf((string)separray[j],beginning)) == -1) | 6714 | if ((offset[j] = src.IndexOf(separray[j].ToString(),beginning)) == -1) |
6715 | { | 6715 | { |
6716 | // not present at all | 6716 | // not present at all |
6717 | active[j] = false; | 6717 | active[j] = false; |
@@ -6739,7 +6739,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6739 | if (active[j]) | 6739 | if (active[j]) |
6740 | { | 6740 | { |
6741 | // scan all of the markers | 6741 | // scan all of the markers |
6742 | if ((offset[j] = src.IndexOf((string)spcarray[j-seplen], beginning)) == -1) | 6742 | if ((offset[j] = src.IndexOf(spcarray[j-seplen].ToString(), beginning)) == -1) |
6743 | { | 6743 | { |
6744 | // not present at all | 6744 | // not present at all |
6745 | active[j] = false; | 6745 | active[j] = false; |
@@ -6774,11 +6774,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6774 | 6774 | ||
6775 | if (best < seplen) | 6775 | if (best < seplen) |
6776 | { | 6776 | { |
6777 | beginning = offset[best] + ((string)separray[best]).Length; | 6777 | beginning = offset[best] + (separray[best].ToString()).Length; |
6778 | } | 6778 | } |
6779 | else | 6779 | else |
6780 | { | 6780 | { |
6781 | beginning = offset[best] + ((string)spcarray[best - seplen]).Length; | 6781 | beginning = offset[best] + (spcarray[best - seplen].ToString()).Length; |
6782 | tokens.Add(spcarray[best - seplen]); | 6782 | tokens.Add(spcarray[best - seplen]); |
6783 | } | 6783 | } |
6784 | } | 6784 | } |