Просмотр исходного кода

fixed prepare not resetting instr ptr on reloads

master
Ludovic 'Archivist' Lagouardette 9 месяцев назад
Родитель
Сommit
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);
}

Загрузка…
Отмена
Сохранить