TAStudio - fix exception when loading states in record mode. Caused by a out of bounds exception on the StateRecords array. This is just a band-aid, tastudio should not be asking for out of bounds information, that needs to be fixed.
This commit is contained in:
parent
76c68bf6d5
commit
68d79dd991
|
@ -207,7 +207,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public bool FrameLagged(int frame)
|
||||
{
|
||||
if (frame >= StateFirstIndex && frame <= StateLastIndex)
|
||||
if (frame >= StateFirstIndex && frame <= StateLastIndex && frame <= StateRecords.Count)
|
||||
{
|
||||
return StateRecords[frame].Lagged;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue