Fixing unknown bug

This commit is contained in:
Zoe Roux
2021-06-07 14:49:25 +02:00
parent e0683c0df0
commit 328ad91c43
4 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -27,7 +27,7 @@ namespace WAL
//! @brief Is this entity enabled?
bool _disabled = false;
//! @brief Has this entity been scheduled for deletion?
bool _shouldDelete;
bool _shouldDelete = false;
//! @brief The list of the components of this entity
std::unordered_map<std::type_index, std::unique_ptr<Component>> _components = {};
@@ -174,7 +174,5 @@ namespace WAL
~Entity() = default;
//! @brief An entity is not assignable
Entity &operator=(const Entity &) = delete;
//! @brief An entity is move assignable.
Entity &operator=(Entity &&) = default;
};
} // namespace WAL
-1
View File
@@ -52,7 +52,6 @@ namespace WAL
}
for (auto &system : this->_systems)
system->update(dtime);
auto &entities = this->scene->getEntities();
this->scene->deleteMarkedEntities();
callback(*this, state);
}