X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ast.c;h=238d00a8e9455ec7e3770f8a2b1426887cff1287;hp=1644e243cc122626ca4ea9ba88f07be9c7490d92;hb=ac7e1a557d6dde0fc201e74c23446a65d5b8a142;hpb=ea801acdb8c281ece37d0fbd9527753c0db41df5 diff --git a/ast.c b/ast.c index 1644e24..238d00a 100644 --- a/ast.c +++ b/ast.c @@ -1192,7 +1192,6 @@ ast_function* ast_function_new(lex_ctx_t ctx, const char *name, ast_value *vtype if (!vtype) { compile_error(ast_ctx(self), "internal error: ast_function_new condition 0"); goto cleanup; - } else if (vtype->hasvalue || vtype->expression.vtype != TYPE_FUNCTION) { } else if (vtype->hasvalue || vtype->expression.vtype != TYPE_FUNCTION) { compile_error(ast_ctx(self), "internal error: ast_function_new condition %i %i type=%i (probably 2 bodies?)", (int)!vtype,