Fixed AS1/2 - loops and switch break/continue vs definefunction

This commit is contained in:
Jindra Petřík
2021-11-22 07:56:56 +01:00
parent 891a0f1ed8
commit 12945c5696
2 changed files with 2 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ public class ActionSourceGenerator implements SourceGenerator {
private void fixLoop(List<Action> code, int breakOffset, int continueOffset) {
int pos = 0;
for (Action a : code) {
pos += a.getTotalActionLength();
pos += a.getBytesLength();
if (a instanceof ActionJump) {
ActionJump aj = (ActionJump) a;
if (aj.isContinue && (continueOffset != Integer.MAX_VALUE)) {