fixed jump offset bug

This commit is contained in:
Lauchmelder 2021-11-24 14:34:36 +01:00
parent d63dbea5fb
commit f1f0be77ae

View file

@ -202,7 +202,7 @@ const std::vector<Keyword> keywords =
else
condition = std::floor(rt.resolve_var_num(tokens[1].val_string));
dest = rt.instruction_counter + dest;
dest = rt.instruction_counter + offset;
if(condition > 0.0f)
rt.jump_instructions(dest);