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);