mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 07:35:14 -05:00
Inline clone method
More obvious what it does
This commit is contained in:
@@ -35,7 +35,7 @@ public override int Ball
|
||||
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;
|
||||
|
||||
@@ -70,7 +70,7 @@ public PK4 PK
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user