There was an error while loading. Please reload this page.
1 parent e518b3a commit 4d39586Copy full SHA for 4d39586
1 file changed
WowPacketParser/Misc/ClientLocale.cs
@@ -25,6 +25,9 @@ public static void SetLocale(string locale)
25
PacketLocaleString = "enUS";
26
else
27
PacketLocaleString = locale;
28
+
29
+ if (!Enum.TryParse<LocaleConstant>(PacketLocaleString, out var _))
30
+ throw new InvalidDataException($"Invalid locale '{PacketLocaleString}'.");
31
}
32
33
0 commit comments