Fix issues with personal editor

This commit is contained in:
Andrew
2016-12-09 11:38:32 +00:00
parent 4c5f88b43a
commit bfcb5a9ed2
2 changed files with 5 additions and 3 deletions

View File

@@ -479,6 +479,8 @@ private void B_Personal_Click(object sender, EventArgs e)
// Set Master Table back
for (int i = 0; i < d.Length - 1; i++)
d[i].CopyTo(d[d.Length-1], i * d[i].Length);
Config.GARCPersonal.Files = d;
Config.GARCPersonal.Save();
Config.InitializePersonal();

View File

@@ -57,8 +57,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; } }
@@ -80,7 +80,7 @@ public override int[] Abilities
get { return new int[] { Data[0x18], Data[0x19], Data[0x1A] }; }
set
{
if (value?.Length != 2) return;
if (value?.Length != 3) return;
Data[0x18] = (byte)value[0];
Data[0x19] = (byte)value[1];
Data[0x1A] = (byte)value[2];