From 9ed0bd2919607a56e8edd1bc367c52a3f68111a1 Mon Sep 17 00:00:00 2001 From: Kevin Oliva Date: Fri, 8 May 2020 19:07:06 -0500 Subject: [PATCH] Fixes issue with parsing in the Turkish locale --- Heroes.ReplayParser/Foole.Mpq/MpqArchive.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Heroes.ReplayParser/Foole.Mpq/MpqArchive.cs b/Heroes.ReplayParser/Foole.Mpq/MpqArchive.cs index 5b9b119..bc61626 100644 --- a/Heroes.ReplayParser/Foole.Mpq/MpqArchive.cs +++ b/Heroes.ReplayParser/Foole.Mpq/MpqArchive.cs @@ -248,7 +248,7 @@ internal static uint HashString(string input, int offset) foreach(char c in input) { - int val = (int)char.ToUpper(c); + int val = (int)char.ToUpperInvariant(c); seed1 = sStormBuffer[offset + val] ^ (seed1 + seed2); seed2 = (uint)val + seed1 + seed2 + (seed2 << 5) + 3; }