From 5641757b98d8aa163566e3b74e5482319fcc2f0d Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 16 Jan 2021 09:26:33 -0500 Subject: [PATCH] Bounds check index on background color check, fixes #2572 --- src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index 4d891eb276..b2707dc03a 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -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;