diff --git a/lib/libimhex/include/hex/pattern_language/ast/ast_node_array_variable_decl.hpp b/lib/libimhex/include/hex/pattern_language/ast/ast_node_array_variable_decl.hpp index 1ed2739a9..5c76f6d67 100644 --- a/lib/libimhex/include/hex/pattern_language/ast/ast_node_array_variable_decl.hpp +++ b/lib/libimhex/include/hex/pattern_language/ast/ast_node_array_variable_decl.hpp @@ -215,6 +215,7 @@ namespace hex::pl { addEntries(std::move(patterns)); auto ctrlFlow = evaluator->getCurrentControlFlowStatement(); + evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None); if (ctrlFlow == ControlFlowStatement::Break) break; else if (ctrlFlow == ControlFlowStatement::Continue) { @@ -238,6 +239,7 @@ namespace hex::pl { addEntries(std::move(patterns)); auto ctrlFlow = evaluator->getCurrentControlFlowStatement(); + evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None); if (ctrlFlow == ControlFlowStatement::Break) break; else if (ctrlFlow == ControlFlowStatement::Continue) { @@ -284,6 +286,7 @@ namespace hex::pl { } auto ctrlFlow = evaluator->getCurrentControlFlowStatement(); + evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None); if (ctrlFlow == ControlFlowStatement::Break) break; else if (ctrlFlow == ControlFlowStatement::Continue) {