Clear move pp on move deletion

closes #1894
This commit is contained in:
Kurt 2018-04-09 06:10:26 -07:00
parent 335379bd2e
commit 508f056d33

View File

@ -906,7 +906,10 @@ private void UpdatePP(object sender, EventArgs e)
var ppctrl = PPUps[index];
int ppups = ppctrl.SelectedIndex;
if (move <= 0)
{
ppctrl.SelectedIndex = 0;
MovePP[index].Text = 0.ToString();
}
else
MovePP[index].Text = pkm.GetMovePP(move, ppups).ToString();
}