Fix box data report out of range gen1/2

Closes #1992 , val was -1
This commit is contained in:
Kurt 2018-06-11 06:36:43 -07:00
parent ca9f21fa49
commit 1d24e459f9

View file

@ -124,7 +124,7 @@ namespace PKHeX.WinForms
Stats = pkm.GetStats(pkm.PersonalInfo);
}
private static string Get(IReadOnlyList<string> arr, int val) => arr?.Count > val ? arr[val] : null;
private static string Get(IReadOnlyList<string> arr, int val) => arr?.Count > val && val >= 0 ? arr[val] : null;
}
public ReportGrid()
{