From f96f9b6c0206df1177a0ee69223fbafae7b58a6b Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Jan 2016 11:31:52 -0500 Subject: [PATCH] ificmpne to ificmpeq --- .../deob/attributes/code/instructions/IfICmpNe.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 bc19564106..2cf81f9926 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,6 +24,10 @@ 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; } @@ -43,6 +47,10 @@ public class IfICmpNe extends If if (isZero(s1) || isZero(s2)) return true; } + else if (otherIc.getInstruction() instanceof IfICmpEq) + { + return true; + } return false; }