Tastudio - fix an exception when painting on the last frame

This commit is contained in:
adelikat 2014-09-18 21:56:13 +00:00
parent 7629df2892
commit ff0cbcadc2
1 changed files with 10 additions and 1 deletions

View File

@ -260,7 +260,16 @@ namespace BizHawk.Client.EmuHawk
TasView.Refresh();
_startBoolDrawColumn = buttonName;
_boolPaintState = _currentTasMovie.BoolIsPressed(frame, buttonName);
if (frame < _currentTasMovie.InputLogLength)
{
_boolPaintState = _currentTasMovie.BoolIsPressed(frame, buttonName);
}
else
{
Global.ClickyVirtualPadController.IsPressed(buttonName);
}
}
else
{