mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_HAL_SITL: avoid nullptr dereference in Replay
This commit is contained in:
parent
1cb86303b4
commit
933aba66f8
@ -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…
Reference in New Issue
Block a user