mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +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");
|
parseerror(parser, "return with invalid expression");
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ast_return_new(exp->expression.node.context, exp);
|
ret = ast_return_new(ctx, exp);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
ast_delete(exp);
|
ast_delete(exp);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue