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