From 7003e6bb71f17797995ba024e62cc16ac15bc412 Mon Sep 17 00:00:00 2001 From: Frank Stein Date: Wed, 16 Mar 2016 21:08:41 +0200 Subject: Removing of copy-paste issue. --- entityx/Entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3