]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixing token-reset in modelname
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 16:23:35 +0000 (18:23 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 16:23:35 +0000 (18:23 +0200)
lexer.c

diff --git a/lexer.c b/lexer.c
index 75452a16f441e2172897a4b370b60891a03d93ca..aa08a89851abf1d736c8d06d86c500421cd4aa5b 100644 (file)
--- 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;