Skip to content

Commit 1e602ee

Browse files
committed
fix(menumanager): Float Parse
1 parent 2180e90 commit 1e602ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

managed/src/SwiftlyS2.Core/Modules/Menus/MenuManager.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Globalization;
12
using SwiftlyS2.Core.Natives;
23
using SwiftlyS2.Shared.Menus;
34
using SwiftlyS2.Shared.Players;
@@ -27,11 +28,11 @@ public MenuManager()
2728
ButtonsScroll = parts[3],
2829
ButtonsExit = parts[4],
2930
SoundUseName = parts[5],
30-
SoundUseVolume = float.Parse(parts[6]),
31+
SoundUseVolume = float.Parse(parts[6], CultureInfo.InvariantCulture),
3132
SoundScrollName = parts[7],
32-
SoundScrollVolume = float.Parse(parts[8]),
33+
SoundScrollVolume = float.Parse(parts[8], CultureInfo.InvariantCulture),
3334
SoundExitName = parts[9],
34-
SoundExitVolume = float.Parse(parts[10]),
35+
SoundExitVolume = float.Parse(parts[10], CultureInfo.InvariantCulture),
3536
ItemsPerPage = int.Parse(parts[11]),
3637
};
3738
}

0 commit comments

Comments
 (0)