From: Frank Stein Date: Wed, 16 Mar 2016 19:08:41 +0000 (+0200) Subject: Removing of copy-paste issue. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=7003e6bb71f17797995ba024e62cc16ac15bc412;p=clyne%2Fentityx.git Removing of copy-paste issue. --- diff --git a/entityx/Entity.h b/entityx/Entity.h index 06854e3..b55a45f 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -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))