diff options
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 bfba7fe..7e6148c 100644 --- a/src/crepe/api/GameObject.hpp +++ b/src/crepe/api/GameObject.hpp @@ -9,7 +9,7 @@ namespace crepe { template <typename T, typename... Args> T & GameObject::add_component(Args &&... args) { ComponentManager & mgr = ComponentManager::get_instance(); - return mgr.add_component<T>(this->id, std::forward<Args>(args)...); + return mgr.add_component<T>(this->ID, std::forward<Args>(args)...); } } // namespace crepe |