diff options
-rw-r--r-- | entityx/Entity.h | 2 | ||||
-rw-r--r-- | entityx/help/Pool.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h index 5e9b17d..2ef01f7 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -384,7 +384,7 @@ class EntityManager : entityx::help::NonCopyable { for (size_t i = 0; i < component_pools_.size(); i++) { BasePool *pool = component_pools_[i]; if (pool && mask.test(i)) { - pool->remove_component(Entity(this, entity)); + pool->removeComponent(Entity(this, entity)); pool->destroy(index); } } diff --git a/entityx/help/Pool.h b/entityx/help/Pool.h index b28e4e7..c4b7d83 100644 --- a/entityx/help/Pool.h +++ b/entityx/help/Pool.h @@ -65,7 +65,7 @@ class BasePool { } virtual void destroy(std::size_t n) = 0; - virtual void remove_component(Entity entity) = 0; + virtual void removeComponent(Entity entity) = 0; protected: std::vector<char *> blocks_; @@ -94,7 +94,7 @@ class Pool : public BasePool { ptr->~T(); } - virtual void remove_component(Entity entity) override { + virtual void removeComponent(Entity entity) override { entity.remove<T>(); } }; |