Fix a typecasting issue in llList2Float. This addresses mantis #262

avinationmerge
meta7 2010-08-18 04:23:56 -07:00
parent ca8b1e488c
commit 810840b862
1 changed files with 1 additions and 1 deletions

View File

@ -5108,7 +5108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
else if (src.Data[index] is LSL_Float) else if (src.Data[index] is LSL_Float)
return Convert.ToDouble(((LSL_Float) src.Data[index]).value); return Convert.ToDouble(((LSL_Float) src.Data[index]).value);
else if (src.Data[index] is LSL_String) else if (src.Data[index] is LSL_String)
return Convert.ToDouble(((LSL_String) src.Data[index]).m_string); return Convert.ToDouble(Regex.Replace(((LSL_String)src.Data[index]).m_string, "[^0-9]", ""));
return Convert.ToDouble(src.Data[index]); return Convert.ToDouble(src.Data[index]);
} }
catch (FormatException) catch (FormatException)