diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 12:37:28 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 12:37:28 +0100 |
commit | d7b17796943e2cc09bf4de853a9c1a19d3cb6786 (patch) | |
tree | 8854c5fd56739af96da53f489aac11c1d87e7160 /src/crepe/api/GameObject.hpp | |
parent | acbe6b5d4256db950827b120fe7cd781e45715f6 (diff) |
Made id const
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 |