Allow throw type changes to be saved

move SM/USUM branch inside the method
closes #1695
This commit is contained in:
Kurt 2017-12-05 07:26:55 -08:00
parent 5bc2e6da88
commit eff8855729

View file

@ -155,6 +155,8 @@ namespace PKHeX.WinForms
CB_AlolaTime.Enabled = false; // alola time doesn't exist yet
else
CB_AlolaTime.SelectedValue = (int)time;
if (CB_AlolaTime.SelectedValue == null)
CB_AlolaTime.Enabled = false;
NUD_M.Value = SAV.M;
// Sanity Check Map Coordinates
@ -337,8 +339,7 @@ namespace PKHeX.WinForms
SaveBattleTree();
SaveTrainerAppearance();
SAV.DaysFromRefreshed = (byte)NUD_DaysFromRefreshed.Value;
if (SAV.SM)
SaveThrowType();
SaveThrowType();
SAV.FestivalPlazaName = TB_PlazaName.Text;
@ -440,6 +441,9 @@ namespace PKHeX.WinForms
if (CB_BallThrowType.SelectedIndex >= 0)
SAV.BallThrowType = CB_BallThrowType.SelectedIndex;
if (!SAV.SM) // unlock flags are in flag editor instead
return;
const int unlockStart = 292;
const int learnedStart = 3479;
for (int i = 2; i < BattleStyles.Length; i++)