Sfoglia il codice sorgente

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette 9 mesi fa
parent
commit
c2032c77c4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      priv_include/UserScript/interpreter.h

+ 1
- 0
priv_include/UserScript/interpreter.h Vedi File

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

Caricamento…
Annulla
Salva