diff --git a/lib/libimhex/include/hex/providers/buffered_reader.hpp b/lib/libimhex/include/hex/providers/buffered_reader.hpp index 5b7241a54..9bc72546a 100644 --- a/lib/libimhex/include/hex/providers/buffered_reader.hpp +++ b/lib/libimhex/include/hex/providers/buffered_reader.hpp @@ -53,7 +53,7 @@ namespace hex::prv { this->updateBuffer(address - std::min(address, this->m_buffer.size()), size); - auto result = &this->m_buffer[address - this->m_startAddress]; + auto result = &this->m_buffer[address - this->m_bufferAddress]; return { result, result + std::min(size, this->m_buffer.size()) }; }