AS3: chained assignments fix

This commit is contained in:
Jindra Petk
2013-01-02 12:21:51 +01:00
parent 586dfe374b
commit f048ca746e

View File

@@ -1522,7 +1522,7 @@ public class AVM2Code {
} else if (insAfter.definition instanceof SetLocalTypeIns) {
//chained assignments
int reg = (((SetLocalTypeIns) insAfter.definition).getRegisterId(insAfter));
for (int t = ip + 1; t < end - 1; t++) {
for (int t = ip + 1; t <= end - 1; t++) {
if (code.get(t).definition instanceof KillIns) {
if (code.get(t).operands[0] == reg) {
break;