aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.hpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-06 14:16:55 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-06 14:16:55 +0100
commitc6ce7e13c5fe802a7eba35189916023925dbfdc1 (patch)
tree98a5d61b4f5484c269acfbf82e1007763270c998 /src/crepe/api/GameObject.hpp
parentdb5a3668aa4b3919ee8dce7ed0872aa5707f80ff (diff)
Added comments and replaced some auto with concrete types
Diffstat (limited to 'src/crepe/api/GameObject.hpp')
-rw-r--r--src/crepe/api/GameObject.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/GameObject.hpp b/src/crepe/api/GameObject.hpp
index 77cf40e..bfba7fe 100644
--- a/src/crepe/api/GameObject.hpp
+++ b/src/crepe/api/GameObject.hpp
@@ -8,7 +8,7 @@ namespace crepe {
template <typename T, typename... Args>
T & GameObject::add_component(Args &&... args) {
- auto & mgr = ComponentManager::get_instance();
+ ComponentManager & mgr = ComponentManager::get_instance();
return mgr.add_component<T>(this->id, std::forward<Args>(args)...);
}