Inline clone method

More obvious what it does
This commit is contained in:
Kurt 2021-08-21 16:52:06 -07:00
parent 8f0fb902d1
commit c9b838b492
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ namespace PKHeX.Core
public override byte[] Write()
{
// Ensure PGT content is encrypted
var clone = (PCD)Clone();
var clone = new PCD((byte[])Data.Clone());
if (clone.Gift.VerifyPKEncryption())
clone.Gift = clone.Gift;
return clone.Data;

View file

@ -70,7 +70,7 @@ namespace PKHeX.Core
public override byte[] Write()
{
// Ensure PGT content is encrypted
var clone = (PGT)Clone();
var clone = new PGT((byte[])Data.Clone());
clone.VerifyPKEncryption();
return clone.Data;
}