fix: check if Axis fonts are null

This commit is contained in:
Anna
2022-06-24 11:22:20 -04:00
parent 737011c6f8
commit d9fbcc23c5
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1332,7 +1332,7 @@ internal sealed class ChatLog : IUiComponent {
pushed = true;
}
if (!this.Ui.Plugin.Config.FontsEnabled && this.Ui.AxisItalic.Available) {
if (!this.Ui.Plugin.Config.FontsEnabled && (this.Ui.AxisItalic?.Available ?? false)) {
ImGui.PushFont(this.Ui.AxisItalic.ImFont);
pushed = true;
}