From: Wolfgang (Blub) Bumiller Date: Fri, 24 Aug 2012 16:23:35 +0000 (+0200) Subject: fixing token-reset in modelname X-Git-Tag: 0.1-rc1~45 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d851a1400dafc43e1489a58b0317e00eadaf5c0;p=xonotic%2Fgmqcc.git fixing token-reset in modelname --- diff --git a/lexer.c b/lexer.c index 75452a1..aa08a89 100644 --- a/lexer.c +++ b/lexer.c @@ -698,6 +698,7 @@ int lex_do(lex_file *lex) } lex->modelname = lex->tok.value; lex->tok.value = NULL; + lex->tok.value_alloc = lex->tok.value_count = 0; for (frame = 0; frame < lex->frames_count; ++frame) { if (!strcmp(v, lex->frames[frame].name)) { lex->framevalue = lex->frames[frame].value;