Przeglądaj źródła

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette 9 miesięcy temu
rodzic
commit
c2032c77c4
1 zmienionych plików z 1 dodań i 0 usunięć
  1. +1
    -0
      priv_include/UserScript/interpreter.h

+ 1
- 0
priv_include/UserScript/interpreter.h Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz