From 04ea271b8bcd09823ca979494548ecf83e39fb46 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 20 May 2021 08:24:22 -0700 Subject: [PATCH] Update ShowdownSet.cs --- PKHeX.Core/Editing/Showdown/ShowdownSet.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PKHeX.Core/Editing/Showdown/ShowdownSet.cs b/PKHeX.Core/Editing/Showdown/ShowdownSet.cs index 1b1ef6277..1ab7d045e 100644 --- a/PKHeX.Core/Editing/Showdown/ShowdownSet.cs +++ b/PKHeX.Core/Editing/Showdown/ShowdownSet.cs @@ -489,9 +489,9 @@ private void ParseSpeciesNickname(string line) string species, nickname; if (index > 1) // parenthesis value after: Nickname (Species), correct. { - species = line[..index].Trim(); - nickname = line[index..].Trim(); - nickname = RemoveAll(nickname, ParenJunk); // Trim out excess data + nickname = line[..index].Trim(); + species = line[index..].Trim(); + species = RemoveAll(species, ParenJunk); // Trim out excess data } else // parenthesis value before: (Species) Nickname, incorrect { @@ -500,8 +500,8 @@ private void ParseSpeciesNickname(string line) var tmp = line[start..end]; if (end < line.Length - 2) { - species = line[(end + 2)..]; - nickname = tmp; + nickname = line[(end + 2)..]; + species = tmp; } else // (Species), or garbage {