mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 20:44:55 +00:00
Fixed AS1/2 - switch detection
This commit is contained in:
@@ -416,7 +416,7 @@ public class ActionGraph extends Graph {
|
||||
}
|
||||
}
|
||||
if (switchedObject == null) {
|
||||
switchedObject = new DirectValueActionItem(null, null, -1, Null.INSTANCE, null);
|
||||
//switchedObject = new DirectValueActionItem(null, null, -1, Null.INSTANCE, null);
|
||||
}
|
||||
List<GraphTargetItem> caseValuesMap = new ArrayList<>();
|
||||
|
||||
@@ -428,6 +428,11 @@ public class ActionGraph extends Graph {
|
||||
if (set.leftSide instanceof GetVariableActionItem) {
|
||||
switchedObject = set.leftSide;
|
||||
}
|
||||
|
||||
if (switchedObject == null) {
|
||||
stack.push(set);
|
||||
return ret;
|
||||
}
|
||||
List<GraphPart> caseBodyParts = new ArrayList<>();
|
||||
caseBodyParts.add(part.nextParts.get(0));
|
||||
GraphTargetItem top = null;
|
||||
|
||||
Reference in New Issue
Block a user