Explorar el Código

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette hace 9 meses
padre
commit
c2032c77c4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      priv_include/UserScript/interpreter.h

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

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

Cargando…
Cancelar
Guardar