(World) Optimized CreateEntities method

Former-commit-id: 99b89aad500ebaa18fb733ad04a94010728e8370
This commit is contained in:
Lynix 2015-02-08 22:26:28 +01:00
parent 32951deed8
commit 1d79efeb7f
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ namespace Ndk
inline World::EntityList World::CreateEntities(unsigned int count)
{
EntityList list;
list.reserve(count);
for (unsigned int i = 0; i < count; ++i)
list.push_back(CreateEntity());