Fix a typecasting issue in llList2Float. This addresses mantis #262
parent
ca8b1e488c
commit
810840b862
|
@ -5108,7 +5108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
else if (src.Data[index] is LSL_Float)
|
||||
return Convert.ToDouble(((LSL_Float) src.Data[index]).value);
|
||||
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]);
|
||||
}
|
||||
catch (FormatException)
|
||||
|
|
Loading…
Reference in New Issue