diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:41:08 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:41:08 +0100 |
commit | 5134bebc19c46e4e07a5ec3af1d3f3d2d17a86dd (patch) | |
tree | 837daf5b5de189d557b6ae8eaed149354a3b5030 /src/crepe/api/GameObject.cpp | |
parent | 70b1bf50de703330436f2ae9cb103fe33cbb567e (diff) | |
parent | 115d6f50152dc018073345800ca90b85846ebaa9 (diff) |
merge `master` into `loek/scripts`
Diffstat (limited to 'src/crepe/api/GameObject.cpp')
-rw-r--r-- | src/crepe/api/GameObject.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crepe/api/GameObject.cpp b/src/crepe/api/GameObject.cpp index 287e81d..4874426 100644 --- a/src/crepe/api/GameObject.cpp +++ b/src/crepe/api/GameObject.cpp @@ -23,12 +23,10 @@ void GameObject::set_parent(const GameObject & parent) { ComponentManager & mgr = this->component_manager; // Set parent on own Metadata component - vector<reference_wrapper<Metadata>> this_metadata - = mgr.get_components_by_id<Metadata>(this->id); + RefVector<Metadata> this_metadata = mgr.get_components_by_id<Metadata>(this->id); this_metadata.at(0).get().parent = parent.id; // Add own id to children list of parent's Metadata component - vector<reference_wrapper<Metadata>> parent_metadata - = mgr.get_components_by_id<Metadata>(parent.id); + RefVector<Metadata> parent_metadata = mgr.get_components_by_id<Metadata>(parent.id); parent_metadata.at(0).get().children.push_back(this->id); } |