diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e3a69a8..76ade1f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5108,7 +5108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5108 | else if (src.Data[index] is LSL_Float) | 5108 | else if (src.Data[index] is LSL_Float) |
5109 | return Convert.ToDouble(((LSL_Float) src.Data[index]).value); | 5109 | return Convert.ToDouble(((LSL_Float) src.Data[index]).value); |
5110 | else if (src.Data[index] is LSL_String) | 5110 | else if (src.Data[index] is LSL_String) |
5111 | return Convert.ToDouble(((LSL_String) src.Data[index]).m_string); | 5111 | return Convert.ToDouble(Regex.Replace(((LSL_String)src.Data[index]).m_string, "[^0-9]", "")); |
5112 | return Convert.ToDouble(src.Data[index]); | 5112 | return Convert.ToDouble(src.Data[index]); |
5113 | } | 5113 | } |
5114 | catch (FormatException) | 5114 | catch (FormatException) |