mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-26 08:36:38 +00:00
AS1/2 loops compilation fix
This commit is contained in:
@@ -181,8 +181,8 @@ 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();
|
||||
for (Action a : code) {
|
||||
pos += a.getBytes(SWF.DEFAULT_VERSION).length;
|
||||
if (a instanceof ActionJump) {
|
||||
ActionJump aj = (ActionJump) a;
|
||||
if (aj.isContinue && (continueOffset != Integer.MAX_VALUE)) {
|
||||
|
||||
Reference in New Issue
Block a user