TAStudio: Fix #2191 with a null check

This commit is contained in:
alyosha-tas 2020-07-14 17:02:52 -04:00
parent 5515e9fea7
commit 6f461c715d
1 changed files with 8 additions and 2 deletions

View File

@ -79,9 +79,15 @@ namespace BizHawk.Client.Common
{
var lagIndex = index + 1;
var lagged = LagLog[lagIndex];
if (lagged == null && Emulator.Frame == lagIndex)
if (lagged == null)
{
lagged = _inputPollable.IsLagFrame;
if (Emulator != null)
{
if (Emulator.Frame == lagIndex)
{
lagged = _inputPollable.IsLagFrame;
}
}
}
return new TasMovieRecord