AS3 instruction remove fix

This commit is contained in:
Jindra Petřík
2015-07-03 19:37:59 +02:00
parent f3c0c8fa69
commit 635b6d69d5

View File

@@ -1843,12 +1843,12 @@ public class AVM2Code implements Cloneable {
@Override
public int updateOperandOffset(long insAddr, long targetAddress, int offset) {
if (targetAddress > remOffset) {
if (insAddr > remOffset) {
return offset;
}
if (targetAddress > remOffset && insAddr < remOffset) {
return offset - byteCount;
}
if (targetAddress < remOffset && insAddr > remOffset) {
return offset + byteCount;
}
return offset;
}
}, body);