]> code.bitgloo.com Git - clyne/entityx.git/commit
Fix stupid iteration bug.
authorAlec Thomas <alec@swapoff.org>
Thu, 5 Sep 2013 21:16:11 +0000 (17:16 -0400)
committerAlec Thomas <alec@swapoff.org>
Thu, 5 Sep 2013 21:16:11 +0000 (17:16 -0400)
commit3caea41b6e1fcd4af31214cb7e1bfc8958f51371
treeb3a6b28c0ffd460468d237a62cb6593210c9be80
parentcfc3cda1a739a601c3a95efe3e3be27ea020e4a5
Fix stupid iteration bug.

Iteration would terminate at ID size() rather than capacity(),
where size() is the number of allocated entities. Depending on where
deleted entities were, this would likely miss entities at the end of
the allocated vectors.

Fixes #10.
entityx/Entity.h
entityx/Entity_test.cc