From 3da4873f94ad36b705fc8918903ae36f8c33caaf Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 12 Jul 2018 17:09:39 -0700 Subject: [PATCH] Bounds check species ID for negative certain downstream consumers of the library be doin silly things --- PKHeX.Core/Editing/ShowdownSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Editing/ShowdownSet.cs b/PKHeX.Core/Editing/ShowdownSet.cs index 4aa0dc5b6..bcd55a904 100644 --- a/PKHeX.Core/Editing/ShowdownSet.cs +++ b/PKHeX.Core/Editing/ShowdownSet.cs @@ -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();