From 234e42a319d9b0f7031788499e5391b253357b0c Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Jan 2016 13:52:35 -0500 Subject: [PATCH] Fix previous commit --- .../deob/attributes/code/instructions/IfICmpNe.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/runelite/deob/attributes/code/instructions/IfICmpNe.java b/src/main/java/net/runelite/deob/attributes/code/instructions/IfICmpNe.java index 2cf81f9926..8b30138d88 100644 --- a/src/main/java/net/runelite/deob/attributes/code/instructions/IfICmpNe.java +++ b/src/main/java/net/runelite/deob/attributes/code/instructions/IfICmpNe.java @@ -24,10 +24,6 @@ public class IfICmpNe extends If if (o instanceof Integer && (int) o == 0) return true; } - else if (s.getPushed().getInstruction() instanceof IfICmpEq) - { - return true; - } return false; } @@ -58,7 +54,7 @@ public class IfICmpNe extends If @Override public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other) { - if (other.getInstruction() instanceof IfEq) + if (other.getInstruction() instanceof IfEq || other.getInstruction() instanceof IfICmpEq) { super.mapOtherBranch(mapping, ctx, other); }