fixing bug where last element in list is ignored

integration
SignpostMarv 2012-08-29 17:21:16 +01:00 committed by Justin Clark-Casey (justincc)
parent 6b277394c0
commit c76c63725b
1 changed files with 1 additions and 1 deletions

View File

@ -1137,7 +1137,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
{ {
list ret = new list(); list ret = new list();
double entry; double entry;
for (int i = 0; i < src.Data.Length - 1; i++) for (int i = 0; i < src.Data.Length; i++)
{ {
if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry)) if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry))
{ {