Set language for gen3 eggs prior to applying nickname

The sav.ApplyTo call above tries to set the current savefile language, but gen3 savs do not have a Language ID saved.

Just mimic what the encounter slots/static/etc do.
This commit is contained in:
Kurt 2021-06-27 15:43:35 -07:00
parent b7f849cb42
commit 764e506ab5

View file

@ -42,6 +42,7 @@ namespace PKHeX.Core
int lang = (int)Language.GetSafeLanguage(Generation, (LanguageID)sav.Language, version);
pk.Species = Species;
pk.Form = Form;
pk.Language = lang;
pk.Nickname = SpeciesName.GetSpeciesNameGeneration(Species, lang, gen);
pk.CurrentLevel = Level;
pk.Version = (int)version;