Core/ApplicationBase: Execute updaters before updating components
This commit is contained in:
parent
883b54e6d3
commit
23cccaaf99
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue