mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Enable 'local-already-declared' check for locals even when they are functions - this was previously simply in the wrong 'if'
This commit is contained in:
parent
8e30d7cb86
commit
e87fd30c48
1 changed files with 46 additions and 46 deletions
4
parser.c
4
parser.c
|
@ -2510,7 +2510,8 @@ static bool parse_variable(parser_t *parser, ast_block *localblock)
|
|||
goto cleanup;
|
||||
}
|
||||
}
|
||||
else /* if it's a local: */
|
||||
}
|
||||
if (localblock) /* if it's a local: */
|
||||
{
|
||||
olddecl = parser_find_local(parser, var->name, parser->blocklocal, &isparam);
|
||||
if (opts_standard == COMPILER_GMQCC)
|
||||
|
@ -2567,7 +2568,6 @@ static bool parse_variable(parser_t *parser, ast_block *localblock)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!hadproto) {
|
||||
|
|
Loading…
Reference in a new issue