mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
ast_return needs the correct context...
This commit is contained in:
parent
3119a95a89
commit
d76e6b103d
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -2156,7 +2156,7 @@ static bool parse_return(parser_t *parser, ast_block *block, ast_expression **ou
|
|||
parseerror(parser, "return with invalid expression");
|
||||
}
|
||||
|
||||
ret = ast_return_new(exp->expression.node.context, exp);
|
||||
ret = ast_return_new(ctx, exp);
|
||||
if (!ret) {
|
||||
ast_delete(exp);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue