Fix entity move assignment
This commit is contained in:
parent
99a85c73d8
commit
2eb8988d73
@ -53,6 +53,8 @@ namespace game
|
||||
{
|
||||
if (&other != this)
|
||||
{
|
||||
this->release();
|
||||
|
||||
this->context_ = other.context_;
|
||||
this->entity_id_ = other.entity_id_;
|
||||
|
||||
|
@ -79,7 +79,7 @@ namespace game
|
||||
|
||||
void scheduler::remove(const task_handle& handle)
|
||||
{
|
||||
for (const auto task : this->tasks_)
|
||||
for (const auto& task : this->tasks_)
|
||||
{
|
||||
if(task->id == handle.id)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user