Core/ApplicationBase: Execute updaters before updating components

This commit is contained in:
SirLynix 2023-03-25 14:47:47 +01:00
parent 883b54e6d3
commit 23cccaaf99
1 changed files with 3 additions and 3 deletions

View File

@ -55,15 +55,15 @@ namespace Nz
bool ApplicationBase::Update(Time elapsedTime)
{
for (auto& updater : m_updaters)
updater->Update(elapsedTime);
for (auto& componentPtr : m_components)
{
if (componentPtr)
componentPtr->Update(elapsedTime);
}
for (auto& updater : m_updaters)
updater->Update(elapsedTime);
return m_running;
}
}