Fix for uncaught numeric parse exception

This commit is contained in:
SoujiSeta 2015-02-08 02:38:11 -06:00
parent e056c59457
commit 7ecddd2150

View file

@ -659,7 +659,7 @@ namespace PKHeX
{
MaskedTextBox box = sender as MaskedTextBox;
if (box.Text == "") box.Text = "0";
if (int.Parse(box.Text) > 255) box.Text = "255";
if (Util.ToInt32(box.Text) > 255) box.Text = "255";
}
private int psssatoffset = 0x23800;
private void changeStat(object sender, EventArgs e)