Fix double enumeration in `InputRoll.SelectRow`
This commit is contained in:
parent
6e881d39a2
commit
86a4aa69ee
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue