]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Removing of copy-paste issue.
authorFrank Stein <dr.frank.stain@gmail.com>
Wed, 16 Mar 2016 19:08:41 +0000 (21:08 +0200)
committerFrank Stein <dr.frank.stain@gmail.com>
Wed, 16 Mar 2016 19:08:41 +0000 (21:08 +0200)
entityx/Entity.h

index 06854e3ee918778e35f0d595c3bdf23e0c4eddb0..b55a45f5b4aa410dba0c488c685bad1750f8475f 100644 (file)
@@ -573,7 +573,7 @@ class EntityManager : entityx::help::NonCopyable {
   void destroy(Entity::Id entity) {
     assert_valid(entity);
     uint32_t index = entity.index();
-    auto mask = entity_component_mask_[entity.index()];
+    auto mask = entity_component_mask_[index];
     for (size_t i = 0; i < component_helpers_.size(); i++) {
       BaseComponentHelper *helper = component_helpers_[i];
       if (helper && mask.test(i))