From 9b30bb8a2f90ad3be925571bf178fa28f9b98319 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 29 Feb 2020 10:55:30 -0800 Subject: [PATCH] Don't copy PID->EC if bad GenNumber Reading raw uncaptured data from RAM --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index 6ba9c34f0..91e80e39b 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -1427,7 +1427,9 @@ private void UpdateShiny(bool PID) 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