mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
inalvid double should defualt to 0
This commit is contained in:
@@ -2514,7 +2514,8 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
|
||||
public LSLFloat(ReadOnlySpan<char> s)
|
||||
{
|
||||
double.TryParse(s, System.Globalization.NumberStyles.Float, Culture.NumberFormatInfo, out value);
|
||||
if(!double.TryParse(s, System.Globalization.NumberStyles.Float, Culture.NumberFormatInfo, out value))
|
||||
value = 0;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user