mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-29 14:25:58 -05:00
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:
@@ -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++)
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user