Bounds check index on background color check, fixes #2572

This commit is contained in:
alyosha-tas 2021-01-16 09:26:33 -05:00
parent 26fb9b9694
commit 5641757b98
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ namespace BizHawk.Client.EmuHawk
private void ListView_QueryItemBkColor(int index, RollColumn column, ref Color color)
{
if (_searches.Count > 0)
if ((_searches.Count > 0) && (index < _searches.Count))
{
var nextColor = Color.White;