Skip to content

Commit

Permalink
Fix Seg fault while rendering from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kanurag94 committed May 28, 2020
1 parent 4f9de72 commit 6884d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui-hlp/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ int uih_renderanimation(struct uih_context *gc1, const char *basename,
free(saveddata);
return 0;
}
uih->font = gc1->font;
if(gc1)
uih->font = gc1->font;
uih->fcontext->slowmode = 1;
uih_constantframetime(uih, frametime);
af = xio_ropen(animation);
Expand Down

0 comments on commit 6884d4b

Please sign in to comment.