From 782fa9f70aa1898447fcdf1811716f01547e43f2 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 10 Nov 2015 10:27:05 -0500 Subject: [PATCH] switch instructions can jump multiple times to the same place --- .../java/net/runelite/deob/attributes/code/Instruction.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/runelite/deob/attributes/code/Instruction.java b/src/main/java/net/runelite/deob/attributes/code/Instruction.java index 85e8fc5ffd..8abc663c3b 100644 --- a/src/main/java/net/runelite/deob/attributes/code/Instruction.java +++ b/src/main/java/net/runelite/deob/attributes/code/Instruction.java @@ -220,6 +220,10 @@ public abstract class Instruction implements Cloneable { assert to != null; assert to != this; + + assert this.jump.contains(to) == to.from.contains(this); + if (this.jump.contains(to)) + return; // switch statements can jump to the same place multiple times this.jump.add(to); to.from.add(this);