From c03fc0be81bf4db21aa6352dad01cb432977f96d Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 5 Jan 2015 00:43:02 +0000 Subject: [PATCH] Tastudio - fix issue 356, don't crash when clicking a float column when the movie has no input yet --- .../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 3a2a05b7ad..5aa719ce88 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -256,7 +256,16 @@ namespace BizHawk.Client.EmuHawk else { _startFloatDrawColumn = buttonName; - _floatPaintState = CurrentTasMovie.GetFloatValue(frame, buttonName); + + float _floatPaintState = 0; + if (frame < CurrentTasMovie.InputLogLength) + { + _floatPaintState = CurrentTasMovie.GetFloatValue(frame, buttonName); + } + else + { + _floatPaintState = Global.ClickyVirtualPadController.GetFloat(buttonName); + } } } }