From: Wolfgang Bumiller Date: Sun, 14 Jan 2018 08:31:45 +0000 (+0100) Subject: Make parser_find_local only actually search locals X-Git-Tag: xonotic-v0.8.5~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e920766b10ebed3fc7fad0373aab6dde507e2341;p=xonotic%2Fgmqcc.git Make parser_find_local only actually search locals Fixes #163 Signed-off-by: Wolfgang Bumiller --- diff --git a/parser.cpp b/parser.cpp index 1404273..c795e40 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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; }