Fix bad input exception handling

Matches the other implementation
This commit is contained in:
Kaphotics
2016-09-01 20:48:38 -07:00
parent 18b081c1e3
commit e290443d4e

View File

@@ -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)