mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 14:58:19 +00:00
Swf tools try..catch fix
This commit is contained in:
@@ -1400,8 +1400,15 @@ public class AVM2Graph extends Graph {
|
||||
//should not happen
|
||||
finallyCommands.clear();
|
||||
}
|
||||
//remove Dup before switch
|
||||
if (!finallyCommands.isEmpty() && finallyCommands.get(finallyCommands.size() - 1) instanceof SetTemporaryItem) {
|
||||
SetTemporaryItem st = (SetTemporaryItem) finallyCommands.get(finallyCommands.size() - 1);
|
||||
if (st.value instanceof PopItem) {
|
||||
finallyCommands.remove(finallyCommands.size() - 1);
|
||||
}
|
||||
}
|
||||
stack.pop(); //duplicated switched value
|
||||
stack.pop(); //value switched by lookupswitch
|
||||
stack.pop(); //value switched by lookupswitch
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user