Code standardtization pass. Fixed a bunch of warnings.

This commit is contained in:
Antoine Pilote
2023-03-04 17:50:02 -05:00
parent dfd8c0c57d
commit 8be7695d1e
28 changed files with 133 additions and 106 deletions

View File

@@ -75,11 +75,14 @@ namespace Nuake {
Entity Scene::GetEntityByID(int id)
{
auto idView = m_Registry.view<NameComponent>();
for (auto e : idView) {
for (auto e : idView)
{
NameComponent& nameC = idView.get<NameComponent>(e);
if (nameC.ID == id)
return Entity{ e, this };
}
assert("Not found");
}