]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
add an asterror message for ast_entfield_new with a wrong type
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 21:33:34 +0000 (22:33 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 21:33:34 +0000 (22:33 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 3575437955e8347ed7607b9846fe985685f1a0f2..da51a46a8d74ac28d5ce51f87942963cf26ea8d7 100644 (file)
--- 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;
     }