From 0446faeb6fc23af0ffe2278cfcdb3a4e12a49de8 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 25 Feb 2019 23:30:26 +0100 Subject: [PATCH] minor changes --- TODO | 1 - src/entt/entity/registry.hpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 688ecaa0d..cb6dbaf6a 100644 --- a/TODO +++ b/TODO @@ -12,7 +12,6 @@ * hashed string: add implicit check on construction for uniqueness (optional) * destroy overload that accepts a couple of iterators (see create) * allow for built-in parallel each if possible -* travis + windows is now available, try it * events on replace, so that one can track updated components? indagate impact * tags revenge: if it's possible, reintroduce them but without a link to entities (see #169 for more details) * empty components model allows for shared components and prefabs unity-like diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 35c254c13..9da723f28 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -547,7 +547,7 @@ public: auto &pdata = pools[pos-1]; if(pdata.pool && pdata.pool->has(entity)) { - pools[pos-1].destruction.publish(*this, entity); + pdata.destruction.publish(*this, entity); pdata.pool->destroy(entity); } };