Fix record setting logic

Thanks @AnalogMan151 ! #2416
Fix method reference lol
This commit is contained in:
Kurt 2019-11-20 18:18:33 -08:00
parent f30a14ebf0
commit 2aaa3763ee
2 changed files with 2 additions and 2 deletions

View file

@ -577,7 +577,7 @@ namespace PKHeX.Core
return;
foreach (var m in moves)
{
var index = Array.FindIndex(Legal.Pouch_TMHM_SWSH, 100, z => z == m) - 100;
var index = Array.FindIndex(Legal.TMHM_SWSH, 100, z => z == m) - 100;
if (index >= 0)
pk8.SetMoveRecordFlag(index, true);
}

View file

@ -1598,7 +1598,7 @@ namespace PKHeX.WinForms.Controls
{
if (ModifierKeys == Keys.Shift)
{
Entity.SetRelearnMoves(Entity.Moves);
Entity.SetRecordFlags(Entity.Moves);
UpdateLegality();
return;
}