Core/Application: Fix updater elapsed time

This commit is contained in:
SirLynix
2023-05-06 15:44:52 +02:00
parent 5e5a740f24
commit 9aeaaa9495
3 changed files with 14 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ namespace Nz
Time timeSinceLastUpdate = m_currentTime - updaterEntry.lastUpdate;
if NAZARA_UNLIKELY(updaterEntry.nextUpdate == updaterEntry.lastUpdate)
if NAZARA_UNLIKELY(updaterEntry.lastUpdate < Time::Zero())
{
// First call
timeSinceLastUpdate = Time::Zero();