Fix entity move assignment

This commit is contained in:
momo5502 2019-01-21 23:42:28 +01:00
parent 99a85c73d8
commit 2eb8988d73
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ namespace game
{
if (&other != this)
{
this->release();
this->context_ = other.context_;
this->entity_id_ = other.entity_id_;

View File

@ -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)
{