diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 14:16:55 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 14:16:55 +0100 |
commit | c6ce7e13c5fe802a7eba35189916023925dbfdc1 (patch) | |
tree | 98a5d61b4f5484c269acfbf82e1007763270c998 /src/crepe/api/GameObject.hpp | |
parent | db5a3668aa4b3919ee8dce7ed0872aa5707f80ff (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.hpp | 2 |
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)...); } |