mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 12:21:04 +00:00
About box
AS1/2: Fixed important decompiling bug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user