Fixed #1840 AS3 Direct editation - Type mismatched for a trait

This commit is contained in:
Jindra Petřík
2022-11-18 17:43:04 +01:00
parent f90f5fbd32
commit 2b7434d488
2 changed files with 5 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ public class PropertyAVM2Item extends AssignableAVM2Item {
int nsKind = openedNamespaces.get(i).kind;
DottedChain nsname = openedNamespaces.get(i).name;
int name_index = 0;
int name_index = 0;
int string_property_index = constants.getStringId(propertyName, false);
if (string_property_index > -1) {
for (int m = 1; m < constants.getMultinameCount(); m++) {
@@ -286,7 +286,8 @@ public class PropertyAVM2Item extends AssignableAVM2Item {
}
}
if (name_index > 0) {
for (int c = 0; c < abc.instance_info.size(); c++) {
//I believe these can be commented out... as it breaks #1840
/*for (int c = 0; c < abc.instance_info.size(); c++) {
if (abc.instance_info.get(c).deleted) {
continue;
}
@@ -316,8 +317,7 @@ public class PropertyAVM2Item extends AssignableAVM2Item {
break loopobjType;
}
}
}
}*/
for (ScriptInfo si : abc.script_info) {
if (si.deleted) {