aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorSignpostMarv2012-08-29 17:21:16 +0100
committerJustin Clark-Casey (justincc)2012-08-30 00:10:28 +0100
commitc76c63725bedb1f7e22dba23d3a8034885ff60e5 (patch)
tree1f1e0a779a145d2e1964d32b6f08d02e12d1d19d /OpenSim/Region/ScriptEngine/Shared
parentrefactoring as the list funcs either skip invalid values or recall ToDoubleList (diff)
downloadopensim-SC_OLD-c76c63725bedb1f7e22dba23d3a8034885ff60e5.zip
opensim-SC_OLD-c76c63725bedb1f7e22dba23d3a8034885ff60e5.tar.gz
opensim-SC_OLD-c76c63725bedb1f7e22dba23d3a8034885ff60e5.tar.bz2
opensim-SC_OLD-c76c63725bedb1f7e22dba23d3a8034885ff60e5.tar.xz
fixing bug where last element in list is ignored
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 9d9df9c..fcb98a5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1137,7 +1137,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1137 { 1137 {
1138 list ret = new list(); 1138 list ret = new list();
1139 double entry; 1139 double entry;
1140 for (int i = 0; i < src.Data.Length - 1; i++) 1140 for (int i = 0; i < src.Data.Length; i++)
1141 { 1141 {
1142 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry)) 1142 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry))
1143 { 1143 {