Update SAV_MysteryGiftDB.cs

This commit is contained in:
Kurt 2021-04-21 19:36:10 -07:00
parent 8e1be1f911
commit b049c82284

View file

@ -107,7 +107,10 @@ namespace PKHeX.WinForms
var pk = Results[index].ConvertToPKM(SAV); var pk = Results[index].ConvertToPKM(SAV);
pk = PKMConverter.ConvertToType(pk, SAV.PKMType, out var c); pk = PKMConverter.ConvertToType(pk, SAV.PKMType, out var c);
if (pk == null) if (pk == null)
throw new FormatException(c); // shouldn't happen {
WinFormsUtil.Error(c);
return;
}
SAV.AdaptPKM(pk); SAV.AdaptPKM(pk);
PKME_Tabs.PopulateFields(pk, false); PKME_Tabs.PopulateFields(pk, false);
slotSelected = index; slotSelected = index;