From ff0cbcadc252f2dcdb26c448f268340fa811f8ea Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 18 Sep 2014 21:56:13 +0000 Subject: [PATCH] Tastudio - fix an exception when painting on the last frame --- .../tools/TAStudio/TAStudio.ListView.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index f03c15491e..5a4834a3a4 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -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 {