mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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)
|
if (end < 0)
|
||||||
end = len;
|
end = len;
|
||||||
if (allowEmpty || end > from)
|
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)
|
if (end == len)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue