Tastudio - fix issue 356, don't crash when clicking a float column when the movie has no input yet
This commit is contained in:
parent
3438039c5e
commit
c03fc0be81
|
@ -256,7 +256,16 @@ namespace BizHawk.Client.EmuHawk
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_startFloatDrawColumn = buttonName;
|
_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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue