mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
Allow new instance of PK6 with no arguments
This commit is contained in:
parent
eb22a46290
commit
861881a37d
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ namespace PKHeX
|
|||
internal static readonly int SIZE_PARTY = 0x104;
|
||||
internal static readonly int SIZE_STORED = 0xE8;
|
||||
|
||||
public PK6(byte[] decryptedData, string ident = null)
|
||||
public PK6(byte[] decryptedData = null, string ident = null)
|
||||
{
|
||||
Data = (byte[])decryptedData.Clone();
|
||||
Data = (byte[])(decryptedData ?? new byte[SIZE_PARTY]).Clone();
|
||||
Identifier = ident;
|
||||
if (Data.Length != SIZE_PARTY)
|
||||
Array.Resize(ref Data, SIZE_PARTY);
|
||||
|
|
Loading…
Reference in a new issue