Fix a crash bug when loading Gen 3 saves on mono (#1815)

This commit is contained in:
Pete Rolph 2018-02-05 15:48:47 +00:00 committed by Kurt
parent 246b9d46a9
commit 32c650c053

View file

@ -13,7 +13,7 @@ namespace PKHeX.WinForms
InitializeComponent(); InitializeComponent();
CB_Game.DisplayMember = nameof(ComboItem.Text); CB_Game.DisplayMember = nameof(ComboItem.Text);
CB_Game.ValueMember = nameof(ComboItem.Value); CB_Game.ValueMember = nameof(ComboItem.Value);
CB_Game.DataSource = new BindingSource(items, null); CB_Game.DataSource = new BindingSource(items.ToList(), null);
CB_Game.SelectedIndex = 0; CB_Game.SelectedIndex = 0;
CB_Game.Focus(); CB_Game.Focus();
} }