From 7ecddd2150ced41879403713cc36afcddb94d797 Mon Sep 17 00:00:00 2001 From: SoujiSeta Date: Sun, 8 Feb 2015 02:38:11 -0600 Subject: [PATCH] Fix for uncaught numeric parse exception --- SAV/SAV_Trainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAV/SAV_Trainer.cs b/SAV/SAV_Trainer.cs index cc9d5b08a..b3faf795d 100644 --- a/SAV/SAV_Trainer.cs +++ b/SAV/SAV_Trainer.cs @@ -659,7 +659,7 @@ private void change255(object sender, EventArgs e) { 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)