fix an error with new logic in commit 6b63db8

This commit is contained in:
SuuperW 2020-08-24 18:34:59 -05:00
parent 6b63db80e2
commit 956b71060e
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ namespace BizHawk.Client.Common
public bool MatchesSettings(RewindConfig settings)
{
long size = 1L << (int)Math.Floor(Math.Log(settings.BufferSize, 2));
long targetSize = settings.BufferSize * 1024 * 1024;
long size = 1L << (int)Math.Floor(Math.Log(targetSize, 2));
return Size == size &&
_useCompression == settings.UseCompression &&
_targetFrameLength == settings.TargetFrameLength;