mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-12 12:55:16 -05:00
Fix pgt->pk4 obj usage
clone the data, don't reuse & tamper with pgt data... thanks @ReignOfComputer !
This commit is contained in:
@@ -236,7 +236,7 @@ public override PKM ConvertToPKM(SaveFile SAV)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user