diff options
Diffstat (limited to 'src/crepe/api/GameObject.hpp')
-rw-r--r-- | src/crepe/api/GameObject.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/GameObject.hpp b/src/crepe/api/GameObject.hpp index 77cf40e..7e6148c 100644 --- a/src/crepe/api/GameObject.hpp +++ b/src/crepe/api/GameObject.hpp @@ -8,8 +8,8 @@ namespace crepe { template <typename T, typename... Args> T & GameObject::add_component(Args &&... args) { - auto & mgr = ComponentManager::get_instance(); - return mgr.add_component<T>(this->id, std::forward<Args>(args)...); + ComponentManager & mgr = ComponentManager::get_instance(); + return mgr.add_component<T>(this->ID, std::forward<Args>(args)...); } } // namespace crepe |