mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #112897 from PixelDough/mono-fix-SplitFloats
Fix StringExtensions.SplitFloats incorrect float parsing
This commit is contained in:
@@ -1539,7 +1539,7 @@ namespace Godot
|
||||
if (end < 0)
|
||||
end = len;
|
||||
if (allowEmpty || end > from)
|
||||
ret.Add(float.Parse(instance.AsSpan(from), CultureInfo.InvariantCulture));
|
||||
ret.Add(float.Parse(instance.AsSpan(from, end - from), CultureInfo.InvariantCulture));
|
||||
if (end == len)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user