From c0dc5f5d785cb4d0b0f5c05174c36fab9eef9cfb Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Mon, 16 Dec 2024 20:58:02 +0100 Subject: rendersys --- src/crepe/system/RenderSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index 7f00891..f2ed97d 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -81,9 +81,9 @@ void RenderSystem::render_text(){ RefVector texts = mgr.get_components_by_type(); - for (Text & text : texts) { + for (const Text & text : texts) { if (!text.active) continue; - resource_manager.get(text.font); + const Font & res = resource_manager.get(text.font); //ctx.draw_text(text, font); } -- cgit v1.2.3