diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.kt index 169a85d304..d017fe0a38 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.kt @@ -116,7 +116,7 @@ fun Expression.countNots(): Int { } fun Expression.hasSideEffects(): Boolean { - if (isLiteralExpr || isNameExpr || isFieldAccessExpr) { + if (isLiteralExpr || isNameExpr || isFieldAccessExpr || isThisExpr) { return false } else if (isUnaryExpr) { return asUnaryExpr().expression.hasSideEffects()