delta rewinder: fix crash on rewinding when the buffer was full

Woops!
Closes #2870.
This commit is contained in:
nattthebear 2021-07-20 16:53:40 -04:00
parent 7cc73ca9b0
commit 8cd67529a3
1 changed files with 6 additions and 1 deletions

View File

@ -189,7 +189,12 @@ namespace BizHawk.Client.Common
_masterLength = (int)sss.Position;
_masterFrame = frame;
_count++;
}, force: true);
},
indexInvalidated: index =>
{
_count--;
},
force: true);
});
}
}