From 65a154720955536fa2327ace99e3ae0d72a585ad Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 24 Apr 2017 02:05:39 +0100 Subject: fix (or actually break) llList2float() since LSL_Key is same as LSL_String, the case of invalid LSL_Key cannot be handle, since most likely it is a string --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 443ea72..31be2fb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5807,8 +5807,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api string s = item.ToString(); if(UUID.TryParse(s, out uuidt)) return Convert.ToDouble(new LSL_Integer(s).value); - else - return 0; +// we can't do this because a string is also a LSL_Key for now :( +// else +// return 0; } try -- cgit v1.1