mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Don't copy PID->EC if bad GenNumber
Reading raw uncaptured data from RAM
This commit is contained in:
parent
4fb33413e3
commit
9b30bb8a2f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue