Core/ApplicationBase: Replace component indices with hashes

Fixes usage of components across DLL
This commit is contained in:
SirLynix
2024-02-23 22:40:13 +01:00
parent 1cb1750a74
commit 23ea1989ef
6 changed files with 33 additions and 73 deletions

View File

@@ -90,8 +90,10 @@ namespace Nz
updaterEntry.nextUpdate = std::max(updaterEntry.nextUpdate, m_currentTime);
}
for (auto& componentPtr : m_components)
for (auto&& [typeHash, componentPtr] : m_components)
{
NazaraUnused(typeHash);
if (componentPtr)
componentPtr->Update(elapsedTime);
}