diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 1d712b17a..1821203ee 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -343,7 +343,7 @@ namespace hex { auto ¤tFont = ImGui::GetIO().Fonts; for (const auto &[name, font] : fontDefinitions) { // If the texture for this atlas has been built already, don't do it again - if (font == nullptr || font->ContainerAtlas->TexID != 0) + if (font == nullptr || font->ContainerAtlas == nullptr || font->ContainerAtlas->TexID != 0) continue; currentFont = font->ContainerAtlas;