Commit 913de04c authored by louiz’'s avatar louiz’
Browse files

Fix the signature of add/set_work

parent 53dc2b04
......@@ -21,13 +21,13 @@ Entity::~Entity()
log_debug("destroyed entity: " << this->get_id());
}
void Entity::set_work(std::unique_ptr<Work>&& work)
void Entity::set_work(std::unique_ptr<Work> work)
{
this->clear_works();
this->works.push_back(std::move(work));
}
void Entity::queue_work(std::unique_ptr<Work>&& work)
void Entity::queue_work(std::unique_ptr<Work> work)
{
this->works.push_back(std::move(work));
}
......
......@@ -37,8 +37,8 @@ public:
void tick(World*);
void clear_works();
void set_work(std::unique_ptr<Work>&&);
void queue_work(std::unique_ptr<Work>&&);
void set_work(std::unique_ptr<Work>);
void queue_work(std::unique_ptr<Work>);
template <typename ComponentClass>
ComponentClass* get() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment