diff --git a/Confuser.Protections/ControlFlow/SwitchMangler.cs b/Confuser.Protections/ControlFlow/SwitchMangler.cs index ecdcc4ccf..7c0807556 100644 --- a/Confuser.Protections/ControlFlow/SwitchMangler.cs +++ b/Confuser.Protections/ControlFlow/SwitchMangler.cs @@ -135,7 +135,7 @@ LinkedList SpiltStatements(InstrBlock block, Trace trace, CFConte if (trace.AfterStack[instr.Offset] != 0) { if (instr.Operand is Instruction) requiredInstr.Add((Instruction)instr.Operand); - else { + else if (instr.Operand is Instruction[]) { foreach (var target in (Instruction[])instr.Operand) requiredInstr.Add(target); shouldSpilt = false;