From 23eef97ed3fc57fdd619769a74d0abfa7f657714 Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Tue, 17 Dec 2024 15:58:03 +0100 Subject: merged master --- src/crepe/system/RenderSystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/crepe/system/RenderSystem.cpp') diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index 684d798..4082591 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -85,7 +85,8 @@ void RenderSystem::render_text() { for (Text & text : texts) { if (!text.active) continue; - if (!text.font.has_value()) text.font = ctx.get_font_from_name(text.font_family); + if (!text.font.has_value()) + text.font.emplace(ctx.get_font_from_name(text.font_family)); if (!text.font.has_value()) continue; const Font & font = resource_manager.get(text.font.value()); -- cgit v1.2.3