Switching SceneItems to smarts
This commit is contained in:
@ -79,7 +79,7 @@ namespace Dawn {
|
||||
*/
|
||||
template<class T>
|
||||
std::shared_ptr<T> addComponent() {
|
||||
auto component = std::make_shared<T>(this);
|
||||
auto component = std::make_shared<T>(weak_from_this());
|
||||
this->components.push_back(component);
|
||||
return component;
|
||||
}
|
||||
|
Reference in New Issue
Block a user