From aa309ae034f9bb71e101ad6b5c0777e0ec443f9c Mon Sep 17 00:00:00 2001 From: FullLifeGames Date: Tue, 3 Mar 2015 18:11:21 +0100 Subject: [PATCH] Fixing a bug with the Country Sub Region selection This bug occurred via switching from "Australia" to "Austria" while selecting "Vorarlberg". It throws an ArgumentException and this is the fix I used while working on this: http://projectpokemon.org/forums/showthread.php?44994-Mass-Editor-for-all-PKHeX-supported-files --- PKX/f1-Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 357849ce3..8e828565f 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -1221,7 +1221,7 @@ public void setCountrySubRegion(object sender, string type) CB.DataSource = Util.getCBList(type, cl); - if (index > 0 && index <= CB.Items.Count && init) + if (index > 0 && index < CB.Items.Count && init) CB.SelectedIndex = index; } public void setForms(int species, ComboBox cb) @@ -4692,4 +4692,4 @@ private void pbBoxSlot_DragEnter(object sender, DragEventArgs e) private int pkm_from_slot = -1; #endregion } -} \ No newline at end of file +}