diff --git a/plugins/libimhex/source/pattern_language/evaluator.cpp b/plugins/libimhex/source/pattern_language/evaluator.cpp index 307d6317c..f721326d4 100644 --- a/plugins/libimhex/source/pattern_language/evaluator.cpp +++ b/plugins/libimhex/source/pattern_language/evaluator.cpp @@ -95,7 +95,7 @@ namespace hex::pl { } }, value); - this->getStack().back() = castedLiteral; + this->getStack()[pattern->getOffset()] = castedLiteral; } std::optional> Evaluator::evaluate(const std::vector &ast) {