fix personalinfo setters

not used in PKHeX, documentation parity with pk3DS
This commit is contained in:
Kurt 2016-12-09 08:43:47 -08:00
parent 2d5363d7cc
commit 844e1df508
2 changed files with 3 additions and 3 deletions

View File

@ -56,8 +56,8 @@ public override int[] Items
{
if (value?.Length != 3) return;
BitConverter.GetBytes((short)value[0]).CopyTo(Data, 0xC);
BitConverter.GetBytes((short)value[0]).CopyTo(Data, 0xE);
BitConverter.GetBytes((short)value[0]).CopyTo(Data, 0x10);
BitConverter.GetBytes((short)value[1]).CopyTo(Data, 0xE);
BitConverter.GetBytes((short)value[2]).CopyTo(Data, 0x10);
}
}
public override int Gender { get { return Data[0x12]; } set { Data[0x12] = (byte)value; } }

View File

@ -51,7 +51,7 @@ public override int[] Items
{
if (value?.Length != 2) return;
BitConverter.GetBytes((short)value[0]).CopyTo(Data, 0xC);
BitConverter.GetBytes((short)value[0]).CopyTo(Data, 0xE);
BitConverter.GetBytes((short)value[1]).CopyTo(Data, 0xE);
}
}
public override int Gender { get { return Data[0x10]; } set { Data[0x10] = (byte)value; } }