diff --git a/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs b/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs index 439c53e0213..2f89aed99fa 100644 --- a/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs +++ b/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs @@ -108,7 +108,7 @@ public virtual void BulkPeekByte(Range addresses, byte[] values) if (addresses is null) throw new ArgumentNullException(paramName: nameof(addresses)); if (values is null) throw new ArgumentNullException(paramName: nameof(values)); - if ((long) addresses.Count() > values.Length) + if ((long) addresses.Count() != values.Length) { throw new InvalidOperationException("Invalid length of values array"); }