Ver código fonte

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette 9 meses atrás
pai
commit
c2032c77c4
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      priv_include/UserScript/interpreter.h

+ 1
- 0
priv_include/UserScript/interpreter.h Ver arquivo

@ -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);
}

Carregando…
Cancelar
Salvar