Tastudio - account for an unlikely edge case NRE where right button held is true but mouse is outside of the control

This commit is contained in:
adelikat 2020-04-18 10:23:10 -05:00
parent 2a2ddde277
commit a460846ff8
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ namespace BizHawk.Client.EmuHawk
private void TasView_MouseWheel(object sender, MouseEventArgs e)
{
if (TasView.RightButtonHeld && TasView.CurrentCell.RowIndex.HasValue)
if (TasView.RightButtonHeld && TasView?.CurrentCell.RowIndex.HasValue == true)
{
_suppressContextMenu = true;
int notch = e.Delta / 120;