diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/ForLoopConditionTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/ForLoopConditionTransformer.kt index 1cfb2f6275..1d014417c5 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/ForLoopConditionTransformer.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/ForLoopConditionTransformer.kt @@ -16,7 +16,7 @@ class ForLoopConditionTransformer : Transformer() { } val expr = compare.asBinaryExpr() - if (expr.left.hasSideEffects() && expr.right.hasSideEffects()) { + if (expr.hasSideEffects()) { return@ifPresent }