1
0
mirror of synced 2024-11-28 09:30:51 +01:00

pattern: Fixed highlighting of arrays

This commit is contained in:
WerWolv 2022-01-21 19:06:30 +01:00
parent 355b99c68f
commit 768e74d9d3

View File

@ -68,7 +68,7 @@ namespace hex::pl {
this->m_evaluator->patternCreated();
}
~PatternCreationLimiter() {
virtual ~PatternCreationLimiter() {
if (this->m_evaluator == nullptr) return;
this->m_evaluator->patternDestroyed();
@ -869,7 +869,7 @@ namespace hex::pl {
[[nodiscard]]
const PatternData* getPattern(u64 offset) const override {
auto iter = std::find_if(this->m_entries.begin(), this->m_entries.end(), [this, offset](PatternData *pattern){
return offset >= this->getOffset() && offset < (this->getOffset() + this->getSize());
return offset >= pattern->getOffset() && offset < (pattern->getOffset() + pattern->getSize());
});
if (iter == this->m_entries.end())