mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
set expression.next to NULL in ast_block_set_type if it won't be set to a new value
This commit is contained in:
parent
0e3bc87c75
commit
e239d2a33b
1 changed files with 2 additions and 0 deletions
2
ast.c
2
ast.c
|
@ -621,6 +621,8 @@ bool ast_block_set_type(ast_block *self, ast_expression *from)
|
|||
if (!self->expression.next)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
self->expression.next = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue