diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
commit | d8483cfab70b5aca3baae6e0588924da8b54e090 (patch) | |
tree | 5326d27e365ddea1923ee64586e0c5fc3befe6a9 /src/crepe/ComponentManager.hpp | |
parent | 4ff1159fe5f6ee6dd8becc662bc95a93acda545a (diff) |
updated components to have an ID
Diffstat (limited to 'src/crepe/ComponentManager.hpp')
-rw-r--r-- | src/crepe/ComponentManager.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/ComponentManager.hpp b/src/crepe/ComponentManager.hpp index 2ea0c70..f19fdcb 100644 --- a/src/crepe/ComponentManager.hpp +++ b/src/crepe/ComponentManager.hpp @@ -30,7 +30,7 @@ void ComponentManager::add_component(uint32_t id, Args &&... args) { // Create a new component of type T (arguments directly forwarded). The // constructor must be called by ComponentManager. - T * instance = new T(forward<Args>(args)...); + T * instance = new T(id,forward<Args>(args)...); // store its unique_ptr in the vector<> components[type][id].push_back(unique_ptr<T>(instance)); } |