fix: Modified bytes on pages after the first one always displaying 0x00

Fixed #782
This commit is contained in:
WerWolv 2022-10-13 21:23:26 +02:00
parent b843d8e98a
commit 5d979da3e2
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ namespace hex::plugin::builtin::prv {
for (u64 i = 0; i < size; i++)
if (getPatches().contains(offset + i))
reinterpret_cast<u8 *>(buffer)[i] = getPatches()[offset + PageSize * this->m_currPage + i];
reinterpret_cast<u8 *>(buffer)[i] = getPatches()[offset + i];
if (overlays)
this->applyOverlays(offset, buffer, size);