From 3aa69c888a132a036c53b8884a8f81fbbae02a58 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 7 May 2020 10:14:37 +1000 Subject: [PATCH] If we fail to init any system fonts in Drawer2D_MakeFont, immediately abort the client. Otherwise just end up crashing from null pointer elsewhere --- src/Drawer2D.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Drawer2D.c b/src/Drawer2D.c index 636dcbe1b..caf05abef 100644 --- a/src/Drawer2D.c +++ b/src/Drawer2D.c @@ -78,6 +78,7 @@ void Drawer2D_MakeFont(struct FontDesc* desc, int size, int style) { return; } } + Logger_Abort2(res, "Failed to make system font"); } }