mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Bounds check species ID for negative
certain downstream consumers of the library be doin silly things
This commit is contained in:
parent
04765ef411
commit
3da4873f94
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ namespace PKHeX.Core
|
|||
public string Text => GetText();
|
||||
private string GetText()
|
||||
{
|
||||
if (Species == 0 || Species > MAX_SPECIES)
|
||||
if (Species <= 0 || Species > MAX_SPECIES)
|
||||
return string.Empty;
|
||||
|
||||
var result = new List<string>();
|
||||
|
|
Loading…
Reference in a new issue