Skip to content

Commit

Permalink
Fix font loading sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
nextghost committed May 30, 2021
1 parent 796f179 commit 484abcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signus/src/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ int InitGlobal() {
TTF_SetFontStyle(TinyFont, TTF_STYLE_NORMAL);
memfree(path);

if (NormalFont == NULL && HugeFont == NULL && TinyFont == NULL) {
if (NormalFont == NULL || HugeFont == NULL || TinyFont == NULL) {
return 0;
}

Expand Down

0 comments on commit 484abcd

Please sign in to comment.