aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.hpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-07 12:37:28 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-07 12:37:28 +0100
commitd7b17796943e2cc09bf4de853a9c1a19d3cb6786 (patch)
tree8854c5fd56739af96da53f489aac11c1d87e7160 /src/crepe/api/GameObject.hpp
parentacbe6b5d4256db950827b120fe7cd781e45715f6 (diff)
Made id const
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 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