Fix PID auto-update past gen

Closes #766
This commit is contained in:
Kurt 2017-01-28 10:36:57 -08:00
parent e810e7c430
commit ab5a0a7a3a

View file

@ -1569,9 +1569,12 @@ namespace PKHeX.WinForms
if (!ability_list.Any()) if (!ability_list.Any())
ability_list.Add(GameInfo.Strings.abilitylist[0] + abilIdentifier[0]); ability_list.Add(GameInfo.Strings.abilitylist[0] + abilIdentifier[0]);
bool tmp = fieldsLoaded;
fieldsLoaded = false;
int abil = CB_Ability.SelectedIndex; int abil = CB_Ability.SelectedIndex;
CB_Ability.DataSource = ability_list; CB_Ability.DataSource = ability_list;
CB_Ability.SelectedIndex = abil < 0 || abil >= CB_Ability.Items.Count ? 0 : abil; CB_Ability.SelectedIndex = abil < 0 || abil >= CB_Ability.Items.Count ? 0 : abil;
fieldsLoaded = tmp;
} }
// PKX Data Calculation Functions // // PKX Data Calculation Functions //
private void setIsShiny(object sender) private void setIsShiny(object sender)