From d571cde1a32fde87f8a898eeeef6c7b2c1570fbc Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Sun, 6 Aug 2023 22:23:13 +0300 Subject: [PATCH] Explicitly set float.Parse culture (#18778) --- Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs b/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs index ed838587bb..e6321d8ba9 100644 --- a/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs +++ b/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs @@ -1,4 +1,5 @@ using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.Numerics; using Content.Client.ContextMenu.UI; using Content.Client.Examine; @@ -155,7 +156,7 @@ public sealed partial class GuideEntityEmbed : BoxContainer, IDocumentTag if (args.TryGetValue("Scale", out var scaleStr)) { - var scale = float.Parse(scaleStr); + var scale = float.Parse(scaleStr, CultureInfo.InvariantCulture); Scale = new Vector2(scale, scale); } else