About box

AS1/2: Fixed important decompiling bug
This commit is contained in:
Jindra Pet��k
2011-07-30 14:14:27 +02:00
parent c4a5d74377
commit bce40e6880
7 changed files with 264 additions and 5 deletions
+5 -1
View File
@@ -430,10 +430,14 @@ public class Action {
* @return address
*/
public static long ip2adr(List<Action> actions, int ip, int version) {
if (ip == actions.size()) {
if (ip >= actions.size()) {
if (actions.size() == 0) return 0;
return actions.get(actions.size() - 1).getAddress() + actions.get(actions.size() - 1).getBytes(version).length;
}
if(ip==-1)
{
return 0;
}
return actions.get(ip).getAddress();
}