Ram Watch - fix endless exceptions when loading different ram watch files

This commit is contained in:
adelikat 2012-08-15 00:56:34 +00:00
parent 26b1d06b7a
commit 3e3b154895
1 changed files with 10 additions and 0 deletions

View File

@ -175,6 +175,11 @@ namespace BizHawk.MultiClient
private void WatchListView_QueryItemBkColor(int index, int column, ref Color color)
{
if (index >= watchList.Count)
{
return;
}
if (column == 0)
{
if (watchList[index].type == atype.SEPARATOR)
@ -187,6 +192,11 @@ namespace BizHawk.MultiClient
void WatchListView_QueryItemText(int index, int column, out string text)
{
text = "";
if (index >= watchList.Count)
{
return;
}
if (column == 0) //Address
{
if (watchList[index].type != atype.SEPARATOR)