Skip to content

Commit

Permalink
Fix ZwinderBuffer InvalidateAfter logic
Browse files Browse the repository at this point in the history
- should resolve #4074

- fixes 2d229be for when _firstStateIndex != 0
  • Loading branch information
Morilli committed Oct 3, 2024
1 parent 2205d13 commit f28fa49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public bool InvalidateAfter(int frame)
{
if (_states[i].Frame > frame)
{
_nextStateIndex = (i + _firstStateIndex) & STATEMASK;
_nextStateIndex = i;
return true;
}
}
Expand Down

0 comments on commit f28fa49

Please sign in to comment.