Bounds check index on background color check, fixes #2572
This commit is contained in:
parent
26fb9b9694
commit
5641757b98
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue