From: Stephen Seo Date: Sun, 28 Aug 2016 07:11:23 +0000 (+0900) Subject: Temporary(?) bugfix X-Git-Tag: 1.0~84 X-Git-Url: https://git.seodisparate.com/server_config?a=commitdiff_plain;h=74ecae5dffbe5ca419828ce4f8ccc49c85bebef9;p=EntityComponentMetaSystem Temporary(?) bugfix --- 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++; }