From: Wolfgang (Blub) Bumiller Date: Mon, 12 Nov 2012 21:33:34 +0000 (+0100) Subject: add an asterror message for ast_entfield_new with a wrong type X-Git-Tag: 0.1~19^2~10 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=0224de02d52bbb925f3daa6dbeda2249f84368a9 add an asterror message for ast_entfield_new with a wrong type --- diff --git a/ast.c b/ast.c index 3575437..da51a46 100644 --- a/ast.c +++ b/ast.c @@ -488,6 +488,7 @@ ast_entfield* ast_entfield_new(lex_ctx ctx, ast_expression *entity, ast_expressi ast_instantiate(ast_entfield, ctx, ast_entfield_delete); if (field->expression.vtype != TYPE_FIELD) { + asterror(ctx, "ast_entfield_new with expression not of type field"); mem_d(self); return NULL; }