From 55d9c0c8a9ee909a1a04d54a0776ead6e29be196 Mon Sep 17 00:00:00 2001 From: StudentBlake <6874208+StudentBlake@users.noreply.github.com> Date: Sat, 1 Sep 2018 00:50:10 -0400 Subject: [PATCH] Small fix for duplicate languages sometimes showing up in the combobox for XCI files --- XCI_Explorer/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs index 77ac7a3..22f0c8e 100644 --- a/XCI_Explorer/MainForm.cs +++ b/XCI_Explorer/MainForm.cs @@ -623,7 +623,7 @@ namespace XCI_Explorer { for (int i = 0; i < NACP.NACP_Strings.Length; i++) { NACP.NACP_Strings[i] = new NACP.NACP_String(source.Skip(i * 0x300).Take(0x300).ToArray()); - if (NACP.NACP_Strings[i].Check != 0) { + if (NACP.NACP_Strings[i].Check != 0 && !CB_RegionName.Items.Contains(Language[i])) { CB_RegionName.Items.Add(Language[i]); string icon_filename = "data\\icon_" + Language[i].Replace(" ", "") + ".dat"; if (File.Exists(icon_filename)) {