mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 09:33:59 -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;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user