mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 22:54:14 +00:00
Inline clone method
More obvious what it does
This commit is contained in:
parent
8f0fb902d1
commit
c9b838b492
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue