mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Aircraft ICAO data should use ICAO code as attribute, this somehow got lost in the merge session, re-applied
This commit is contained in:
@@ -506,7 +506,10 @@ namespace BlackCore
|
||||
// ICAO response from custom data
|
||||
if (!aircraftDesignator.isEmpty())
|
||||
{
|
||||
CAircraftIcaoData icao(aircraftDesignator, combinedAircraftType, airlineIcao, "", ""); // from custom packet
|
||||
CAircraftIcaoData icao(
|
||||
CAircraftIcaoCode(aircraftDesignator, combinedAircraftType),
|
||||
CAirlineIcaoCode(airlineIcao)
|
||||
); // from custom packet
|
||||
if (aircraftContainsCallsign)
|
||||
{
|
||||
// we have that aircraft, set straight away
|
||||
@@ -1074,7 +1077,7 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// check sort order
|
||||
Q_ASSERT_X(l.size() < 2 || l[0].getMSecsSinceEpoch() >= l[1].getMSecsSinceEpoch(), "storeAircraftParts", "wrong sort order");
|
||||
Q_ASSERT_X(l.size() < 2 || l[0].getMSecsSinceEpoch() >= l[1].getMSecsSinceEpoch(), Q_FUNC_INFO, "wrong sort order");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user