Tastudio - fix exception when attempting to scroll before frame 0

This commit is contained in:
adelikat 2014-08-31 16:07:11 +00:00
parent 69e9bc22d2
commit 907ab29aaa
1 changed files with 4 additions and 1 deletions

View File

@ -264,11 +264,14 @@ namespace BizHawk.Client.EmuHawk
GoToFrame(Global.Emulator.Frame + 1); GoToFrame(Global.Emulator.Frame + 1);
} }
else else
{
if (Global.Emulator.Frame > 0)
{ {
GoToFrame(Global.Emulator.Frame - 1); GoToFrame(Global.Emulator.Frame - 1);
} }
} }
} }
}
private void TasView_MouseDoubleClick(object sender, MouseEventArgs e) private void TasView_MouseDoubleClick(object sender, MouseEventArgs e)
{ {