AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop

This commit is contained in:
Jindra Petřík
2021-01-18 20:27:05 +01:00
parent 572bcd70c9
commit 15e69bbf75
6 changed files with 34 additions and 3 deletions

View File

@@ -537,9 +537,7 @@ public class AVM2Graph extends Graph {
switchedObject = new LocalRegAVM2Item(null, null, rightReg, null);
}
if(leftReg < 0 && rightReg < 0){
} else if (cnt == 1) {
if ((leftReg < 0 && rightReg < 0) || (cnt == 1)) {
stack.push(set);
} else {
part = part.nextParts.get(1);