mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user