AP_HAL_SITL: avoid nullptr dereference in Replay

This commit is contained in:
Peter Barker 2021-01-19 14:36:07 +11:00 committed by Peter Barker
parent 1cb86303b4
commit 933aba66f8

View File

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