Debugger: Fixed crash when trying to add a watch expression

This commit is contained in:
Souryo 2016-11-27 19:43:37 -05:00
parent 28899e3e18
commit 87d525572e

View file

@ -85,7 +85,7 @@ namespace Mesen.GUI.Debugger
lstWatch.Items.RemoveAt(i);
}
}
lstWatch.Items.Add("");
lstWatch.Items.Add("").SubItems.Add("");
ListViewItem lastItem = lstWatch.Items[lstWatch.Items.Count - 1];
foreach(ListViewItem item in lstWatch.Items) {