Skip to content

Commit f28fa49

Browse files
committed
Fix ZwinderBuffer InvalidateAfter logic
- should resolve #4074 - fixes 2d229be for when _firstStateIndex != 0
1 parent 2205d13 commit f28fa49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public bool InvalidateAfter(int frame)
293293
{
294294
if (_states[i].Frame > frame)
295295
{
296-
_nextStateIndex = (i + _firstStateIndex) & STATEMASK;
296+
_nextStateIndex = i;
297297
return true;
298298
}
299299
}

0 commit comments

Comments
 (0)