AP_Vehicle: Replay now creates vehicle singleton reference
This commit is contained in:
parent
1cefd2943b
commit
29d042dbc7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user