diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 81f8ce7..fa3fab9 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -80,6 +80,9 @@ namespace EC std::get(entities[currentSize]) = true; + // TODO This shouldn't be necessary, but there is a bug + std::get(entities[currentSize]).reset(); + return currentSize++; }