TAStudio - fix an exception caused by an out of bounds check
This commit is contained in:
parent
8812f4b0fb
commit
5888536ac3
|
@ -209,7 +209,14 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
if (frame >= StateFirstIndex && frame <= StateLastIndex && frame <= StateRecords.Count)
|
||||
{
|
||||
return StateRecords[frame].Lagged;
|
||||
if (frame < StateRecords.Count)
|
||||
{
|
||||
return StateRecords[frame].Lagged;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue