diff --git a/libraries/AP_AIS/AP_AIS.cpp b/libraries/AP_AIS/AP_AIS.cpp index fb7646919b..897e3e6679 100644 --- a/libraries/AP_AIS/AP_AIS.cpp +++ b/libraries/AP_AIS/AP_AIS.cpp @@ -309,12 +309,12 @@ bool AP_AIS::get_vessel_index(uint32_t mmsi, uint16_t &index, uint32_t lat, uint return false; } - struct Location current_loc; + Location current_loc; if (!AP::ahrs().get_location(current_loc)) { return false; } - struct Location loc; + Location loc; float dist; float max_dist = 0; for (uint16_t i = 0; i < list_size; i++) {