mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112897 from PixelDough/mono-fix-SplitFloats
Fix StringExtensions.SplitFloats incorrect float parsing
This commit is contained in:
commit
ed62fb12ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue