mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Make parser_find_local only actually search locals
Fixes #163 Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
This commit is contained in:
parent
e006aa8238
commit
e920766b10
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ static ast_expression* parser_find_var(parser_t *parser, const char *name)
|
|||
{
|
||||
bool dummy;
|
||||
ast_expression *v;
|
||||
v = parser_find_local(parser, name, 0, &dummy);
|
||||
v = parser_find_local(parser, name, PARSER_HT_LOCALS, &dummy);
|
||||
if (!v) v = parser_find_global(parser, name);
|
||||
return v;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue