Skip to content

Commit

Permalink
Merge pull request #159 from kanurag94/render-cli-seg-fault
Browse files Browse the repository at this point in the history
Fix Seg fault while rendering from cli
  • Loading branch information
kanurag94 authored May 28, 2020
2 parents 4f9de72 + 6884d4b commit b152477
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 b152477

Please sign in to comment.