patterns: Make placements respect set base addresses and discard out of bounds variables

This commit is contained in:
WerWolv
2021-04-13 21:50:24 +02:00
parent 183b8770bb
commit 45b00c8b5f
3 changed files with 61 additions and 27 deletions

View File

@@ -31,7 +31,8 @@ namespace hex {
});
EventManager::subscribe<EventRegionSelected>(this, [this](Region region) {
this->m_entropyHandlePosition = region.address / this->m_blockSize;
if (this->m_blockSize != 0)
this->m_entropyHandlePosition = region.address / this->m_blockSize;
});
}