Fix egg trainer name logic for wc3

Closes #2676
This commit is contained in:
Kurt 2020-02-03 19:22:16 -08:00
parent 0e1fd49be1
commit bdf6afd2f3

View file

@ -221,7 +221,7 @@ namespace PKHeX.Core
if (TID != -1 && TID != pkm.TID) return false;
if (OT_Gender < 3 && OT_Gender != pkm.OT_Gender) return false;
var wcOT = OT_Name;
if (wcOT != null)
if (!string.IsNullOrEmpty(wcOT))
{
if (wcOT.Length > 7) // Colosseum Mattle Ho-Oh
{