Debugger: Memory Tools - Fixed crash in "Add to watch" action

This commit is contained in:
Sour 2018-05-31 20:59:55 -04:00
parent f3462e0ffe
commit ab8af4693a

View file

@ -474,7 +474,7 @@ namespace Mesen.GUI.Debugger.Controls
private void mnuAddToWatch_Click(object sender, EventArgs e)
{
string[] toAdd = Enumerable.Range(SelectionStartAddress, SelectionEndAddress - SelectionStartAddress - 1).Select((num) => $"[${num.ToString("X4")}]").ToArray();
string[] toAdd = Enumerable.Range(SelectionStartAddress, SelectionEndAddress - SelectionStartAddress + 1).Select((num) => $"[${num.ToString("X4")}]").ToArray();
WatchManager.AddWatch(toAdd);
}