diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 4 |
1 files 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<Text> texts = mgr.get_components_by_type<Text>(); - for (Text & text : texts) { + for (const Text & text : texts) { if (!text.active) continue; - resource_manager.get<Font>(text.font); + const Font & res = resource_manager.get<Font>(text.font); //ctx.draw_text(text, font); } |