mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
an = before an { is also always required when the declared variable is not a function; adding because of planned array initializers
This commit is contained in:
parent
1077eb2061
commit
b3e9ef3ad9
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -5623,7 +5623,7 @@ skipvar:
|
|||
}
|
||||
}
|
||||
|
||||
if (parser->tok != '{') {
|
||||
if (parser->tok != '{' || var->expression.vtype != TYPE_FUNCTION) {
|
||||
if (parser->tok != '=') {
|
||||
parseerror(parser, "missing semicolon or initializer, got: `%s`", parser_tokval(parser));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue