Don't copy PID->EC if bad GenNumber

Reading raw uncaptured data from RAM
This commit is contained in:
Kurt 2020-02-29 10:55:30 -08:00
parent 4fb33413e3
commit 9b30bb8a2f

View file

@ -1427,7 +1427,9 @@ namespace PKHeX.WinForms.Controls
CommonEdits.SetShiny(Entity, ModifierKeys == Keys.Shift);
TB_PID.Text = Entity.PID.ToString("X8");
if (Entity.GenNumber < 6 && TB_EC.Visible)
int gen = Entity.GenNumber;
bool pre3DS = 1 <= gen && gen < 6;
if (pre3DS && TB_EC.Visible)
TB_EC.Text = TB_PID.Text;
}
else