Merge pull request #24 from SoujiSeta/master

Fix for a Mono specific issue when editing the inventory. Also fixed a general issue with the Super Training dialog
This commit is contained in:
Kaphotics
2015-01-03 18:07:42 -08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -161,6 +161,7 @@ private void populateList(string[] itemarr, int offset, int itemcount)
dataGridView1.Columns.Add(dgvIndex);
dataGridView1.Rows.Add(itemcount);
dataGridView1.CancelEdit();
string itemname = "";
for (int i = 0; i < itemcount; i++)

View File

@@ -189,7 +189,7 @@ private void changeRecordVal(object sender, EventArgs e)
{
byte[] data = BitConverter.GetBytes(UInt16.Parse(TB_Unk.Text));
Array.Resize(ref data, 2);
Array.Copy(data, 0, sav, offsetVal + 4 * index, 4);
Array.Copy(data, 0, sav, offsetVal + 4 * index, 2);
}
catch { return; }
}