mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 11:11:22 +00:00
Fixing handling of duplicate frame macros: 'continue' would continue the inner for, how could I miss that
This commit is contained in:
parent
5e4b8846d1
commit
7cfb9425a0
1 changed files with 3 additions and 1 deletions
4
lexer.c
4
lexer.c
|
@ -405,9 +405,11 @@ static bool lex_finish_frames(lex_file *lex)
|
|||
lex->frames[i].value = lex->framevalue++;
|
||||
if (lexwarn(lex, WARN_FRAME_MACROS, "duplicate frame macro defined: `%s`", lex->tok->value))
|
||||
return false;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i < lex->frames_count)
|
||||
continue;
|
||||
|
||||
m.value = lex->framevalue++;
|
||||
m.name = lex->tok->value;
|
||||
|
|
Loading…
Reference in a new issue