diff --git a/priv_include/UserScript/interpreter.h b/priv_include/UserScript/interpreter.h index 198cc76..59cd983 100644 --- a/priv_include/UserScript/interpreter.h +++ b/priv_include/UserScript/interpreter.h @@ -171,6 +171,7 @@ namespace scripting { std::vector errors; auto lexed = ast::lex(code, errors); auto parsed = ast::parse(lexed, errors); + instruction_ptr = 0; if (errors.empty()) { bytecode = generate(errors, parsed, repeating); }