mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
If we fail to init any system fonts in Drawer2D_MakeFont, immediately abort the client.
Otherwise just end up crashing from null pointer elsewhere
This commit is contained in:
parent
90b94409af
commit
3aa69c888a
@ -78,6 +78,7 @@ void Drawer2D_MakeFont(struct FontDesc* desc, int size, int style) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
Logger_Abort2(res, "Failed to make system font");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user