Fixed: #2353 AS1/2 incorrect declaration propagation causing null assignments to registers

This commit is contained in:
Jindra Petřík
2024-10-29 16:55:43 +01:00
parent 404bb51645
commit 6905b2c70e
2 changed files with 4 additions and 1 deletions
@@ -614,7 +614,9 @@ public class ActionGraph extends Graph {
ActionScript2ClassDetector detector = new ActionScript2ClassDetector();
detector.checkClass(uninitializedClassTraits, ret, ((ActionGraphSource) code).getVariables(), path);
}
makeDefineRegistersUp(ret, new HashSet<>());
ActionLocalData ald = (ActionLocalData) localData;
makeDefineRegistersUp(ret, new HashSet<>(ald.regNames.keySet()));
return ret;
}