Browse Source

AP_HAL_SITL: avoid nullptr dereference in Replay

c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
933aba66f8
  1. 4
      libraries/AP_HAL_SITL/SITL_State.cpp

4
libraries/AP_HAL_SITL/SITL_State.cpp

@ -606,7 +606,9 @@ void SITL_State::_fdm_input_local(void) @@ -606,7 +606,9 @@ void SITL_State::_fdm_input_local(void)
struct sitl_input input;
// check for direct RC input
_check_rc_input();
if (_sitl != nullptr) {
_check_rc_input();
}
// construct servos structure for FDM
_simulator_servos(input);

Loading…
Cancel
Save