diff options
-rw-r--r-- | entityx/Entity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h index 0565f9c..4fc5f5e 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -599,7 +599,7 @@ class EntityManager : entityx::help::NonCopyable { // Placement new into the component pool. Pool<C> *pool = accomodate_component<C>(); - new(pool->get(id.index())) C(std::forward<Args>(args) ...); + ::new(pool->get(id.index())) C(std::forward<Args>(args) ...); // Set the bit for this component. entity_component_mask_[id.index()].set(family); |