Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 873357a

Browse files
LeMystrichardthombs
authored andcommitted
Fix culture dependent double.Parse()
Fix #59
1 parent 0bf66a0 commit 873357a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Loader/ShipLoader.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.Text;
66
using System.Text.RegularExpressions;
7+
using System.Globalization;
78

89
using Newtonsoft.Json;
910

@@ -343,7 +344,7 @@ StandardisedPart BuildPart(Part part)
343344
if (Char.IsDigit(c) || c == '.') hacked += c;
344345
}
345346

346-
return double.Parse(hacked);
347+
return double.Parse(hacked, CultureInfo.InvariantCulture);
347348
}
348349

349350
double? CalculateDamageToDestroyShip(Part part)

0 commit comments

Comments
 (0)