mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 19:16:48 -05:00
Bounds check species ID for negative
certain downstream consumers of the library be doin silly things
This commit is contained in:
@@ -150,7 +150,7 @@ private bool ParseEntry(string first, string second)
|
||||
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>();
|
||||
|
||||
Reference in New Issue
Block a user