mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 23:01:53 +00:00
AS3 direct editation: parent constructor call optional parameters fix
This commit is contained in:
@@ -1664,6 +1664,9 @@ public class AVM2SourceGenerator implements SourceGenerator {
|
||||
if (ci > -1) {
|
||||
MethodInfo pmi = a.method_info.get(a.instance_info.get(ci).iinit_index);
|
||||
parentConsAC = pmi.param_types.length;
|
||||
if(pmi.flagHas_optional()){
|
||||
parentConsAC -= pmi.optional.length;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user