mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
patterns: Make placements respect set base addresses and discard out of bounds variables
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user