Преглед на файлове

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

Зареждане…
Отказ
Запис