Skip to content

Commit

Permalink
fixed crash when deleting actor while holding backspace
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Mar 11, 2022
1 parent abc8ab7 commit 6897c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>() == SimState::RUNNING)
{
if (App::GetCameraManager()->GetCurrentBehavior() != CameraManager::CAMERA_BEHAVIOR_FREE)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6897c1f

Please # to comment.