aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authormeta72010-08-18 04:23:56 -0700
committermeta72010-08-18 04:23:56 -0700
commit810840b8624886a615f303baf74f7b72fb1ca66a (patch)
tree5dc7398f34f54fc2765af2f47fb6c5d5a502feec /OpenSim/Region/ScriptEngine
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC-810840b8624886a615f303baf74f7b72fb1ca66a.zip
opensim-SC-810840b8624886a615f303baf74f7b72fb1ca66a.tar.gz
opensim-SC-810840b8624886a615f303baf74f7b72fb1ca66a.tar.bz2
opensim-SC-810840b8624886a615f303baf74f7b72fb1ca66a.tar.xz
Fix a typecasting issue in llList2Float. This addresses mantis #262
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
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)