Apply default language if none

Closes #1920
This commit is contained in:
Kurt 2018-04-30 18:48:21 -07:00
parent bbcbdd80a1
commit 116f600cb7

View file

@ -1609,6 +1609,8 @@ namespace PKHeX.WinForms.Controls
CB_GameOrigin.SelectedIndex = 0;
CB_Move1.SelectedValue = 1;
var info = new SimpleTrainerInfo{Language = Math.Max(0, WinFormsUtil.GetIndex(CB_Language))};
if (info.Language == 0)
info.Language = 2;
SetDetailsOT(info);
CB_Ball.SelectedIndex = Math.Min(0, CB_Ball.Items.Count - 1);