瀏覽代碼

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette 9 月之前
父節點
當前提交
c2032c77c4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      priv_include/UserScript/interpreter.h

+ 1
- 0
priv_include/UserScript/interpreter.h 查看文件

@ -171,6 +171,7 @@ namespace scripting {
std::vector<script_error> errors;
auto lexed = ast::lex(code, errors);
auto parsed = ast::parse(lexed, errors);
instruction_ptr = 0;
if (errors.empty()) {
bytecode = generate(errors, parsed, repeating);
}

Loading…
取消
儲存