diff --git a/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs b/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs index a16a8c7fa5..b0b3bf0500 100644 --- a/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs +++ b/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs @@ -469,14 +469,12 @@ namespace Ryujinx.Memory.WindowsShared { ulong endAddress = address + size; var overlaps = Array.Empty>(); - int count = 0; + int count; lock (_protections) { count = _protections.Get(address, endAddress, ref overlaps); - Debug.Assert(count > 0); - if (count == 1 && overlaps[0].Start <= address && overlaps[0].End >= endAddress && @@ -574,7 +572,7 @@ namespace Ryujinx.Memory.WindowsShared { ulong endAddress = address + size; var overlaps = Array.Empty>(); - int count = 0; + int count; lock (_protections) {