mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Fix for uncaught numeric parse exception
This commit is contained in:
parent
e056c59457
commit
7ecddd2150
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue