Browse Source

Fix animation frames not growing properly

master
Marrub 5 years ago
parent
commit
13038a16b3
  1. 2
      src/g_objdef.c

2
src/g_objdef.c

@ -380,7 +380,7 @@ static void G_ObjDef_parseAnim(G_dodst *st, G_andcl *decl)
char const *frames = st->expect(tok_identi, "frame")->textV;
int time = strtoi(st->expect(tok_number, "time")->textV, NULL, 0);
M_Vec_growN(decl->frame, strlen(frames), 0);
M_Vec_grow(decl->frame, strlen(frames));
for(char const *frame = frames; *frame; frame++) {
char *key = M_StrFmt("%s%c", name, *frame);
G_frdcl *fr = G_frametab.find(key);

Loading…
Cancel
Save