Fix wc4->pgt crypt

array isn't encrypted in place (didn't use return value)
Closes #1835
This commit is contained in:
Kurt 2018-02-15 19:07:41 -08:00
parent 2b49ab0034
commit c825d5919c

View file

@ -207,7 +207,7 @@ namespace PKHeX.Core
{ {
byte[] ekdata = new byte[PKX.SIZE_4PARTY]; byte[] ekdata = new byte[PKX.SIZE_4PARTY];
Array.Copy(Data, 8, ekdata, 0, ekdata.Length); Array.Copy(Data, 8, ekdata, 0, ekdata.Length);
PKX.EncryptArray45(ekdata); ekdata = PKX.EncryptArray45(ekdata);
ekdata.CopyTo(Data, 8); ekdata.CopyTo(Data, 8);
} }