Fix double enumeration in `InputRoll.SelectRow`

This commit is contained in:
James Groom 2024-03-15 06:02:29 +10:00 committed by GitHub
parent 6e881d39a2
commit 86a4aa69ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -576,8 +576,7 @@ namespace BizHawk.Client.EmuHawk
}
else
{
IEnumerable<Cell> items = _selectedItems.Where(cell => cell.RowIndex == index);
_selectedItems.RemoveWhere(items.Contains);
_selectedItems.RemoveWhere(cell => cell.RowIndex == index);
_lastSelectedRow = _selectedItems.LastOrDefault()?.RowIndex;
}
}