mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Allow assigning nil to a field
This commit is contained in:
parent
2637f6f824
commit
5bb9351a3f
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1042,7 +1042,7 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
|
|||
else
|
||||
assignop = type_storep_instr[exprs[0]->expression.vtype];
|
||||
if (assignop == AINSTR_END ||
|
||||
!ast_compare_type(field->expression.next, exprs[1]))
|
||||
(exprs[1]->expression.vtype != TYPE_NIL && !ast_compare_type(field->expression.next, exprs[1])))
|
||||
{
|
||||
ast_type_to_string(field->expression.next, ty1, sizeof(ty1));
|
||||
ast_type_to_string(exprs[1], ty2, sizeof(ty2));
|
||||
|
|
Loading…
Reference in a new issue