Skip to content

Commit

Permalink
Fix crash when accessing physics objects state in OnLateFixedUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed Apr 26, 2024
1 parent 5e5497f commit 4414398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Engine/Engine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4414398

Please sign in to comment.