(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

@@ -22,7 +22,7 @@ namespace Ndk
KillEntity(entity);
}
inline bool World::IsEntityValid(EntityHandle entity) const
inline bool World::IsEntityValid(const EntityHandle& entity) const
{
return entity.IsValid() && entity->GetWorld() == this && IsEntityIdValid(entity->GetId());
}