mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-21 14:51:55 +00:00
Fix pgt->pk4 obj usage
clone the data, don't reuse & tamper with pgt data... thanks @ReignOfComputer !
This commit is contained in:
parent
38fb30e847
commit
f1cd1d8b50
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ namespace PKHeX.Core
|
|||
if (!IsPokémon)
|
||||
return null;
|
||||
|
||||
PK4 pk4 = new PK4(PK.Data) {Sanity = 0};
|
||||
PK4 pk4 = new PK4((byte[])PK.Data.Clone()) {Sanity = 0};
|
||||
if (!IsHatched && Detail == 0)
|
||||
{
|
||||
pk4.OT_Name = SAV.OT;
|
||||
|
|
Loading…
Reference in a new issue