Fix crash when accessing physics objects state in OnLateFixedUpdate

#2494
This commit is contained in:
Wojtek Figat
2024-04-26 19:08:25 +02:00
parent 5e5497ff18
commit 4414398f09

View File

@@ -286,14 +286,14 @@ void Engine::OnLateFixedUpdate()
{
PROFILE_CPU_NAMED("Late Fixed Update");
// Collect physics simulation results (does nothing if Simulate hasn't been called in the previous loop step)
Physics::CollectResults();
// Call event
LateFixedUpdate();
// Update services
EngineService::OnLateFixedUpdate();
// Collect physics simulation results (does nothing if Simulate hasn't been called in the previous loop step)
Physics::CollectResults();
}
void Engine::OnUpdate()