Skip to content

Commit df3ae34

Browse files
committed
Fix: next_instruction always executes the same line
1 parent 184c5b4 commit df3ae34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/luasm.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ function interpreter:next_instruction()
446446
end
447447

448448
local line = self.data.instructions[self.ip]
449+
self.ip = self.ip + 1
449450
if line == nil then
450-
self.ip = self.ip + 1
451451
goto start
452452
end
453453

0 commit comments

Comments
 (0)