fixing token-reset in modelname

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-24 18:23:35 +02:00
parent 04dca17cff
commit 1d851a1400

View file

@ -698,6 +698,7 @@ int lex_do(lex_file *lex)
} }
lex->modelname = lex->tok.value; lex->modelname = lex->tok.value;
lex->tok.value = NULL; lex->tok.value = NULL;
lex->tok.value_alloc = lex->tok.value_count = 0;
for (frame = 0; frame < lex->frames_count; ++frame) { for (frame = 0; frame < lex->frames_count; ++frame) {
if (!strcmp(v, lex->frames[frame].name)) { if (!strcmp(v, lex->frames[frame].name)) {
lex->framevalue = lex->frames[frame].value; lex->framevalue = lex->frames[frame].value;