diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index 2bc9bc96a..bf0642be8 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -41,7 +41,7 @@ namespace hex::plugin::builtin::prv { for (u64 i = 0; i < size; i++) if (getPatches().contains(offset + i)) - reinterpret_cast(buffer)[i] = getPatches()[offset + PageSize * this->m_currPage + i]; + reinterpret_cast(buffer)[i] = getPatches()[offset + i]; if (overlays) this->applyOverlays(offset, buffer, size);