diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 09:54:51 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 09:54:51 +0100 |
commit | 7dfaa964a5039d7c24d16038589c77032152b9f2 (patch) | |
tree | dcb2448fa697dabcb2f248326616a16e62821125 /src/crepe/ComponentManager.hpp | |
parent | fd60c0280440da053948f7500657ae65b94036bf (diff) | |
parent | 3a5201961ce31d415042c6273d03e46aed7e6eb8 (diff) |
Merge remote-tracking branch 'origin/master' into max/big-cleanup
Diffstat (limited to 'src/crepe/ComponentManager.hpp')
-rw-r--r-- | src/crepe/ComponentManager.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/ComponentManager.hpp b/src/crepe/ComponentManager.hpp index e52b679..7616f92 100644 --- a/src/crepe/ComponentManager.hpp +++ b/src/crepe/ComponentManager.hpp @@ -88,7 +88,8 @@ ComponentManager::get_components_by_id(uint32_t id) const { // Create an empty vector<> vector<reference_wrapper<T>> component_vector; - if (this->components.find(type) == this->components.end()) return component_vector; + if (this->components.find(type) == this->components.end()) + return component_vector; // Get the correct vector<> const vector<vector<unique_ptr<Component>>> & component_array @@ -123,7 +124,8 @@ ComponentManager::get_components_by_type() const { vector<reference_wrapper<T>> component_vector; // Find the type (in the unordered_map<>) - if (this->components.find(type) == this->components.end()) return component_vector; + if (this->components.find(type) == this->components.end()) + return component_vector; // Get the correct vector<> const vector<vector<unique_ptr<Component>>> & component_array |