mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-03 17:29:13 +00:00
Add Check for Bad Ability Length 2
Forgot to save, again.
This commit is contained in:
parent
2de7da80b0
commit
c7e570b92d
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ namespace PKHeX.WinForms
|
|||
pk7.SID = Util.ToInt32(TB_SID.Text);
|
||||
pk7.EXP = Util.ToUInt32(TB_EXP.Text);
|
||||
|
||||
if (CB_Ability.Text.Length >= 4)
|
||||
{
|
||||
pk7.Ability = (byte)Array.IndexOf(GameInfo.Strings.abilitylist, CB_Ability.Text.Remove(CB_Ability.Text.Length - 4));
|
||||
pk7.AbilityNumber = Util.ToInt32(TB_AbilityNumber.Text); // Number
|
||||
|
|
Loading…
Reference in a new issue