mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 07:16:36 -05:00
Fix bad input exception handling
Matches the other implementation
This commit is contained in:
@@ -185,6 +185,7 @@ public ShowdownSet(string input = null)
|
||||
)
|
||||
{
|
||||
string[] tmp = spec.Split(new[] { "-" }, StringSplitOptions.None);
|
||||
if (tmp.Length < 2) return;
|
||||
Species = Array.IndexOf(species, tmp[0].Replace(" ", ""));
|
||||
Form = tmp[1].Trim();
|
||||
if (tmp.Length > 2)
|
||||
|
||||
Reference in New Issue
Block a user