aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crepe/api/Text.h2
-rw-r--r--src/example/loadfont.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index fbb1ad6..ec0bf74 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -53,7 +53,7 @@ public:
//! Label text.
std::string text = "";
//! Font asset variable
- Asset font;
+ const Asset font;
//! Data instance
Data data;
};
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp
index 35afdf7..a77e457 100644
--- a/src/example/loadfont.cpp
+++ b/src/example/loadfont.cpp
@@ -13,6 +13,7 @@ int main() {
// SDLFontContext font_facade;
Mediator mediator;
SDLContext sdl_context{mediator};
+ ComponentManager component_manager{mediator};
ResourceManager resource_manager{mediator};
try {
// Correct way to create a unique pointer for Text