Skip to content

Commit

Permalink
new component creation setup, removed constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mormert committed Jan 21, 2024
1 parent cf798c6 commit df6c12b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/jleObject.inl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ jleObject::addComponent()
}
}

std::shared_ptr<T> newComponent = std::make_shared<T>(this, _containedInScene);
std::shared_ptr<T> newComponent = std::make_shared<T>();
newComponent->_attachedToObject = this;
newComponent->_containedInScene = _containedInScene;

_components.push_back(newComponent);

addComponentStart(newComponent);
Expand Down

0 comments on commit df6c12b

Please sign in to comment.