From 6897c1fc52b5fea98c6cc24941e7b8c210ba6daa Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Fri, 11 Mar 2022 08:45:15 +0200 Subject: [PATCH] fixed crash when deleting actor while holding backspace --- source/main/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main/main.cpp b/source/main/main.cpp index a89cabd3a3..f5a89474b8 100644 --- a/source/main/main.cpp +++ b/source/main/main.cpp @@ -849,6 +849,8 @@ int main(int argc, char *argv[]) } App::GetCameraManager()->UpdateInputEvents(dt); App::GetOverlayWrapper()->update(dt); + App::GetGameContext()->GetRecoveryMode().UpdateInputEvents(dt); + App::GetGameContext()->GetActorManager()->UpdateInputEvents(dt); if (App::sim_state->getEnum() == SimState::RUNNING) { if (App::GetCameraManager()->GetCurrentBehavior() != CameraManager::CAMERA_BEHAVIOR_FREE) @@ -881,8 +883,6 @@ int main(int argc, char *argv[]) App::GetGameContext()->UpdateSkyInputEvents(dt); } } - App::GetGameContext()->GetRecoveryMode().UpdateInputEvents(dt); - App::GetGameContext()->GetActorManager()->UpdateInputEvents(dt); } // app state SIMULATION } // interactive key binding mode } // dt != 0