mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 10:35:32 +00:00
Fixed AS1/2 - loops and switch break/continue vs definefunction
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user