mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: fix segv in examples
This commit is contained in:
parent
995cda6363
commit
866405c7df
|
@ -429,8 +429,10 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
// Set SITL start time.
|
||||
AP::sitl()->start_time_UTC = start_time_UTC;
|
||||
if (AP::sitl()) {
|
||||
// Set SITL start time.
|
||||
AP::sitl()->start_time_UTC = start_time_UTC;
|
||||
}
|
||||
|
||||
fprintf(stdout, "Starting sketch '%s'\n", SKETCH);
|
||||
|
||||
|
|
Loading…
Reference in New Issue