Handle EncounterTrade without moves specified

Similar to EncounterStatic handling
Thanks @architdate for pointing this out
This commit is contained in:
Kurt 2018-05-19 21:49:26 -07:00
parent e216c38151
commit 1f8c72af5a

View file

@ -267,7 +267,7 @@ namespace PKHeX.Core
continue; continue;
} }
var em = trade.Moves; var em = trade.Moves;
if (!needs.Except(em).Any()) if (em != null && !needs.Except(em).Any())
yield return trade; yield return trade;
} }
} }