AP_Vehicle: Replay now creates vehicle singleton reference

This commit is contained in:
Peter Barker 2020-03-09 13:58:28 +11:00 committed by Andrew Tridgell
parent 1cefd2943b
commit 29d042dbc7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
};
// reference to the vehicle. using AP::vehicle() here does not work on clang
#if APM_BUILD_TYPE(APM_BUILD_Replay) || APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
AP_Vehicle& vehicle = *AP_Vehicle::get_singleton();
#else
extern AP_Vehicle& vehicle;