Fix double enumeration in `InputRoll.SelectRow`
This commit is contained in:
parent
cb087a35fe
commit
7b5f688590
|
@ -574,8 +574,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
else
|
||||
{
|
||||
IEnumerable<Cell> items = _selectedItems.Where(cell => cell.RowIndex == index);
|
||||
_selectedItems.RemoveAll(items.Contains);
|
||||
_selectedItems.RemoveAll(cell => cell.RowIndex == index);
|
||||
_lastSelectedRow = _selectedItems.LastOrDefault()?.RowIndex;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue