(World) Fixed EntityHandle passed by value

Former-commit-id: c4b4b5cbb4d84110416a4493fc09e7b95e137bc6
This commit is contained in:
Lynix
2015-03-14 13:21:29 +01:00
parent fb148c1aa0
commit 40727cc0ca
3 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ namespace Ndk
m_killedEntities.clear();
}
void World::KillEntity(EntityHandle entity)
void World::KillEntity(const EntityHandle& entity)
{
///DOC: Ignoré si l'entité est invalide
@@ -77,7 +77,7 @@ namespace Ndk
{
for (unsigned int i = 0; i < m_killedEntities.size(); ++i)
{
EntityHandle entity = m_killedEntities[i];
const EntityHandle& entity = m_killedEntities[i];
for (unsigned int j = 0; j < m_aliveEntities.size(); ++j)
{