Fix pgt->pk4 obj usage

clone the data, don't reuse & tamper with pgt data...
thanks @ReignOfComputer !
This commit is contained in:
Kurt 2018-02-11 17:28:23 -08:00
parent 38fb30e847
commit f1cd1d8b50

View file

@ -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;