Fix #391: Metronome Mode causes catching tut. softlock

This commit is contained in:
J. Lord
2018-11-05 17:57:04 -08:00
committed by GitHub
parent af95bffcd8
commit 2b1bba22cb

View File

@@ -271,13 +271,15 @@ private void B_Metronome_Click(object sender, EventArgs e)
for (int i = 0; i < CB_Move.Items.Count; i++)
{
CB_Move.SelectedIndex = i;
if (CB_Move.SelectedIndex != 117)
if (CB_Move.SelectedIndex != 117 || CB_Move.SelectedIndex != 32)
NUD_PP.Value = 0;
if (CB_Move.SelectedIndex == 117)
NUD_PP.Value = 40;
if (CB_Move.SelectedIndex == 32)
NUD_PP.Value = 1;
}
CB_Move.SelectedIndex = 0;
WinFormsUtil.Alert("All Moves have had their Base PP values modified!");
}
}
}
}