diff --git a/ast.cpp b/ast.cpp index 19eff152..00e81aa5 100644 --- a/ast.cpp +++ b/ast.cpp @@ -389,6 +389,11 @@ lCheckAllOffSafety(ASTNode *node, void *data) { return false; } + if (dynamic_cast(node) != NULL) { + *okPtr = false; + return false; + } + if (dynamic_cast(node) != NULL || dynamic_cast(node) != NULL) { // We definitely don't want to run the uniform variants of these if