Fix AOoRE when loading TAStudio w/ cheats(?)
partially reverts dd4f9aaf6
InputRoll code is too inscrutable for me to determine the actual cause so I just
left a `Debug.Assert`
This commit is contained in:
parent
d7810f6ea9
commit
9e9e041bba
|
@ -800,9 +800,17 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsVisible(int index) => FirstVisibleRow.RangeTo(LastFullyVisibleRow).Contains(index);
|
private bool IsVisible(int index)
|
||||||
|
{
|
||||||
|
Debug.Assert(FirstVisibleRow < LastFullyVisibleRow);
|
||||||
|
return FirstVisibleRow <= index && index <= LastFullyVisibleRow;
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsPartiallyVisible(int index) => FirstVisibleRow.RangeTo(LastVisibleRow).Contains(index);
|
public bool IsPartiallyVisible(int index)
|
||||||
|
{
|
||||||
|
Debug.Assert(FirstVisibleRow < LastVisibleRow);
|
||||||
|
return FirstVisibleRow <= index && index <= LastVisibleRow;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the number of rows currently visible including partially visible rows.
|
/// Gets the number of rows currently visible including partially visible rows.
|
||||||
|
|
Loading…
Reference in New Issue