mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-25 03:51:26 +00:00
add an asterror message for ast_entfield_new with a wrong type
This commit is contained in:
parent
89d86420ad
commit
0224de02d5
1 changed files with 1 additions and 0 deletions
1
ast.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue