mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Properly clear valid region when switching to a different provider
This commit is contained in:
@@ -358,7 +358,7 @@ namespace hex::plugin::builtin::ui {
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
if (this->m_provider != nullptr && this->m_provider->isReadable()) {
|
||||
const auto isCurrRegionValid = [this](u64 address){
|
||||
const auto isCurrRegionValid = [this](u64 address) {
|
||||
auto &[currRegion, currRegionValid] = this->m_currValidRegion;
|
||||
if (!Region{ address, 1 }.isWithin(currRegion)) {
|
||||
this->m_currValidRegion = this->m_provider->getRegionValidity(address);
|
||||
|
||||
Reference in New Issue
Block a user